diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
new file mode 100644
index 0000000..3fe3838
--- /dev/null
+++ b/.github/workflows/dotnet.yml
@@ -0,0 +1,38 @@
+# This workflow will build a .NET project
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
+
+name: .NET test
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build-linux:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: 8.0.x
+ - name: Build
+ run: ./build.sh
+ shell: bash
+ build-win:
+
+ runs-on: windows-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: 8.0.x
+ - name: Build
+ run: ./build.ps1
+ shell: pwsh
diff --git a/ReleaseNotes.md b/ReleaseNotes.md
index 3046edb..da94459 100644
--- a/ReleaseNotes.md
+++ b/ReleaseNotes.md
@@ -1,5 +1,9 @@
# Release Notes
+## 4.2.0
+* Add net8.0 support, remove net7.0 support
+* Update NuGet.* packages to 6.9.1
+
## 4.1.0
* Add net7.0 support
diff --git a/build.ps1 b/build.ps1
index c3c7246..ab0bd1a 100644
--- a/build.ps1
+++ b/build.ps1
@@ -23,7 +23,7 @@ Remove-Artifacts $RepoRoot
Invoke-DotnetMSBuild $RepoRoot ("build\build.proj", "/t:Clean;WriteGitInfo", "/p:Configuration=$Configuration")
# Build Exe
-Invoke-DotnetExe $RepoRoot ("publish", "--force", "-r", "win-x64", "-p:PublishSingleFile=true", "-p:PublishTrimmed=false", "--self-contained", "true", "-f", "net6.0", "-o", (Join-Path $RepoRoot "artifacts\publish"), (Join-Path $RepoRoot "\src\NupkgWrench\NupkgWrench.csproj"))
+Invoke-DotnetExe $RepoRoot ("publish", "--force", "-r", "win-x64", "-p:PublishSingleFile=true", "-p:PublishTrimmed=false", "--self-contained", "true", "-f", "net8.0", "-o", (Join-Path $RepoRoot "artifacts\publish"), (Join-Path $RepoRoot "\src\NupkgWrench\NupkgWrench.csproj"))
# Restore
Invoke-DotnetMSBuild $RepoRoot ("build\build.proj", "/t:Restore", "/p:Configuration=$Configuration")
diff --git a/build/common/common.ps1 b/build/common/common.ps1
index 488a090..279e16a 100644
--- a/build/common/common.ps1
+++ b/build/common/common.ps1
@@ -20,10 +20,10 @@ Function Install-DotnetCLI {
Write-Host "Fetching $installDotnet"
- wget https://dot.net/v1/dotnet-install.ps1 -OutFile $installDotnet
+ Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile $installDotnet
& $installDotnet -Channel 6.0 -i $CLIRoot
- & $installDotnet -Channel 7.0 -i $CLIRoot
+ & $installDotnet -Channel 8.0 -i $CLIRoot
if (-not (Test-Path $DotnetExe)) {
Write-Log "Missing $DotnetExe"
@@ -72,7 +72,7 @@ Function Install-NuGetExe {
$nugetDir = Split-Path $nugetExe
New-Item -ItemType Directory -Force -Path $nugetDir
- wget https://dist.nuget.org/win-x86-commandline/v6.0.0/nuget.exe -OutFile $nugetExe
+ Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/v6.9.1/nuget.exe -OutFile $nugetExe
}
}
diff --git a/build/common/common.sh b/build/common/common.sh
index dd384ce..4623e11 100644
--- a/build/common/common.sh
+++ b/build/common/common.sh
@@ -18,7 +18,7 @@ run_standard_tests()
# Run install.sh
chmod +x .cli/dotnet-install.sh
.cli/dotnet-install.sh -i .cli --channel 6.0
- .cli/dotnet-install.sh -i .cli --channel 7.0
+ .cli/dotnet-install.sh -i .cli --channel 8.0
fi
# Display info
diff --git a/build/common/common.shared.props b/build/common/common.shared.props
index b5702ca..f815439 100644
--- a/build/common/common.shared.props
+++ b/build/common/common.shared.props
@@ -9,6 +9,7 @@
$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\
$(RepositoryRootDirectory)build\
+ $(RepositoryBuildDirectory)icons\
$(RepositoryRootDirectory)build\common\
$(RepositoryRootDirectory)$(RepositoryName).sln
$(RepositoryRootDirectory)artifacts\
diff --git a/build/common/common.targets b/build/common/common.targets
index 66a7f28..eb81446 100644
--- a/build/common/common.targets
+++ b/build/common/common.targets
@@ -23,7 +23,7 @@
true
-
+
$(DefineConstants);IS_CORECLR
true
diff --git a/build/config.props b/build/config.props
index f3ceb22..63dc3e3 100644
--- a/build/config.props
+++ b/build/config.props
@@ -1,8 +1,8 @@
- 6.2.1
- 2.1.23
+ 6.9.1
+ 2.1.26
2.0.0
2.0.0
@@ -10,6 +10,7 @@
NupkgWrench
+ $(MSBuildThisFileDirectory)/icons/icon.png
diff --git a/build/icons/icon.png b/build/icons/icon.png
new file mode 100644
index 0000000..f46ecf6
Binary files /dev/null and b/build/icons/icon.png differ
diff --git a/src/NupkgWrench/NupkgWrench.csproj b/src/NupkgWrench/NupkgWrench.csproj
index d4238f6..52b9fc7 100644
--- a/src/NupkgWrench/NupkgWrench.csproj
+++ b/src/NupkgWrench/NupkgWrench.csproj
@@ -3,7 +3,7 @@
- net6.0;net7.0
+ net6.0;net8.0
diff --git a/test/NupkgWrench.CliTool.Tests/BasicTests.cs b/test/NupkgWrench.CliTool.Tests/BasicTests.cs
index eacc7c5..08419e0 100644
--- a/test/NupkgWrench.CliTool.Tests/BasicTests.cs
+++ b/test/NupkgWrench.CliTool.Tests/BasicTests.cs
@@ -50,7 +50,7 @@ public async Task RunToolVerifySuccess()
var result = await CmdRunner.RunAsync(dotnetExe, testContext.Root, $"tool install nupkgwrench --version {version} --add-source {nupkgsFolder} --tool-path {dir}");
result.Success.Should().BeTrue(result.AllOutput);
- var dllPath = Path.Combine(dir, ".store", "nupkgwrench", version, "nupkgwrench", version, "tools", "net6.0", "any", "NupkgWrench.dll");
+ var dllPath = Path.Combine(dir, ".store", "nupkgwrench", version, "nupkgwrench", version, "tools", "net8.0", "any", "NupkgWrench.dll");
if (!File.Exists(dllPath))
{
diff --git a/test/NupkgWrench.CliTool.Tests/NupkgWrench.CliTool.Tests.csproj b/test/NupkgWrench.CliTool.Tests/NupkgWrench.CliTool.Tests.csproj
index e91981e..fe3cc33 100644
--- a/test/NupkgWrench.CliTool.Tests/NupkgWrench.CliTool.Tests.csproj
+++ b/test/NupkgWrench.CliTool.Tests/NupkgWrench.CliTool.Tests.csproj
@@ -3,7 +3,7 @@
- net6.0
+ net8.0
diff --git a/test/NupkgWrench.CmdExe.Tests/NupkgWrench.CmdExe.Tests.csproj b/test/NupkgWrench.CmdExe.Tests/NupkgWrench.CmdExe.Tests.csproj
index 9252548..846c333 100644
--- a/test/NupkgWrench.CmdExe.Tests/NupkgWrench.CmdExe.Tests.csproj
+++ b/test/NupkgWrench.CmdExe.Tests/NupkgWrench.CmdExe.Tests.csproj
@@ -3,7 +3,7 @@
- net6.0
+ net8.0
diff --git a/test/NupkgWrench.Tests/NupkgWrench.Tests.csproj b/test/NupkgWrench.Tests/NupkgWrench.Tests.csproj
index 9984b7b..6445c3e 100644
--- a/test/NupkgWrench.Tests/NupkgWrench.Tests.csproj
+++ b/test/NupkgWrench.Tests/NupkgWrench.Tests.csproj
@@ -3,7 +3,7 @@
- net6.0;net7.0
+ net6.0;net8.0