Skip to content

Commit 918bcd0

Browse files
committed
Update .NET SDK, target runtime & packages
The .NET SDK is updated to version 8. The .NET 7 runtime is removed from list of targets and replaced with version 8. All packages, except Roslyn and NUnit, have been updated to their latest versions. NUnit has not been updated to version 4.x due to breaking changes. See: https://docs.nunit.org/articles/nunit/release-notes/breaking-changes.html#nunit-40
1 parent eab9369 commit 918bcd0

9 files changed

Lines changed: 28 additions & 28 deletions

File tree

eg/SourceGenerator/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)..'))" />
44

55
<PropertyGroup>
6-
<TargetFramework>net7.0</TargetFramework>
6+
<TargetFramework>net8.0</TargetFramework>
77
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
88
<DebugDocoptNet>false</DebugDocoptNet>
99
</PropertyGroup>

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "7.0.100",
4-
"rollForward": "latestFeature"
3+
"version": "8.0.300",
4+
"rollForward": "latestPatch"
55
}
66
}

src/DocoptNet.Playground/DocoptNet.Playground.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.1" />
9-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.1" PrivateAssets="all" />
10-
<PackageReference Include="System.Net.Http.Json" Version="7.0.0" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.6" />
9+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.6" PrivateAssets="all" />
10+
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
1111
</ItemGroup>
1212

1313
<!--

src/DocoptNet/DocoptNet.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- See further below why NU5129 is suppressed. -->
1212
<NoWarn>$(NoWarn);NU5125;NU5129</NoWarn>
1313
<AssemblyName>DocoptNet</AssemblyName>
14-
<VersionPrefix>0.8.2</VersionPrefix>
14+
<VersionPrefix>0.8.3</VersionPrefix>
1515
<AssemblyOriginatorKeyFile>DocoptNet.snk</AssemblyOriginatorKeyFile>
1616
<SignAssembly>true</SignAssembly>
1717
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
@@ -76,11 +76,11 @@ Portions Copyright (C) West Wind Technologies, 2008.
7676
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7777
<PrivateAssets>all</PrivateAssets>
7878
</PackageReference>
79-
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.3">
79+
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4">
8080
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
8181
<PrivateAssets>all</PrivateAssets>
8282
</PackageReference>
83-
<PackageReference Include="PolySharp" Version="1.8.1">
83+
<PackageReference Include="PolySharp" Version="1.14.1">
8484
<PrivateAssets>all</PrivateAssets>
8585
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
8686
</PackageReference>

tests/DocoptNet.Tests/DocoptNet.Tests.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;net47</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net6.0;net47</TargetFrameworks>
55
<AssemblyOriginatorKeyFile>..\..\src\DocoptNet\DocoptNet.snk</AssemblyOriginatorKeyFile>
66
<SignAssembly>true</SignAssembly>
77
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
@@ -27,12 +27,12 @@
2727
<ItemGroup>
2828
<PackageReference Include="Basic.Reference.Assemblies" Version="1.4.1" />
2929
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.10.0" />
30-
<PackageReference Include="morelinq" Version="3.3.2" />
31-
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
32-
<PackageReference Include="nunit" Version="3.13.3" />
33-
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
34-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
35-
<PackageReference Include="Shouldly" Version="4.1.0" />
30+
<PackageReference Include="morelinq" Version="4.2.0" />
31+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
32+
<PackageReference Include="nunit" Version="3.14.0" />
33+
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
34+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
35+
<PackageReference Include="Shouldly" Version="4.2.1" />
3636
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
3737
</ItemGroup>
3838

tests/Integration/DocoptNet.Tests.Integration.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<RestoreAdditionalProjectSources>$(MSBuildThisFileDirectory)..\..\dist</RestoreAdditionalProjectSources>
77
<RestorePackagesPath>$(MSBuildThisFileDirectory).nuget</RestorePackagesPath>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.11.0" />
12-
<PackageReference Include="NUnit" Version="3.13.2" />
13-
<PackageReference Include="NUnit3TestAdapter" Version="4.0.0" />
14-
<PackageReference Include="docopt.net" Version="0.8.1-*" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
12+
<PackageReference Include="NUnit" Version="4.1.0" />
13+
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
14+
<PackageReference Include="docopt.net" Version="0.8.3-*" />
1515
</ItemGroup>
1616

1717
<Target Name="Inspect">

tests/LanguageAgnosticTests/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:7.0.101-alpine3.16-amd64 AS build
1+
FROM mcr.microsoft.com/dotnet/sdk:8.0.300-alpine3.19-amd64 AS build
22

33
WORKDIR /project
44

@@ -8,11 +8,11 @@ COPY tests/LanguageAgnosticTests tests/LanguageAgnosticTests
88

99
RUN dotnet build tests/LanguageAgnosticTests
1010

11-
FROM mcr.microsoft.com/dotnet/runtime:7.0.1-alpine3.16-amd64
11+
FROM mcr.microsoft.com/dotnet/runtime:8.0.6-alpine3.19-amd64
1212

1313
WORKDIR /tests
1414

15-
COPY --from=build /project/tests/LanguageAgnosticTests/bin/Debug/net7.0/ bin
15+
COPY --from=build /project/tests/LanguageAgnosticTests/bin/Debug/net8.0/ bin
1616
COPY --from=build /project/tests/LanguageAgnosticTests/*.py .
1717
COPY --from=build /project/tests/LanguageAgnosticTests/*.docopt .
1818

tests/LanguageAgnosticTests/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Compile the **Testee** project then run the following commands:
55

66
cd tests/LanguageAgnosticTests
77
dotnet build
8-
python language_agnostic_tester.py bin/Debug/net7.0/Testee
8+
python language_agnostic_tester.py bin/Debug/net8.0/Testee
99

1010
On Windows, use the following commands:
1111

1212
dotnet build tests\LanguageAgnosticTests
1313
cd tests\LanguageAgnosticTests
14-
python language_agnostic_tester.py bin\Debug\net7.0\Testee.exe
14+
python language_agnostic_tester.py bin\Debug\net8.0\Testee.exe
1515

1616
Alternatively, build and run the following Docker image (assuming the current
1717
working directory is the same as the directory containing this file):

tests/LanguageAgnosticTests/Testee.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)