Skip to content

Commit bbcfedf

Browse files
committed
Update SDK, run-time targets & dependencies
- Update to .NET SDK 10 - Add .NET 10 runtime as a target - Drop .NET 6 runtime as a target (end-of-life) - Target .NET Framework 4.7 instead of the now obsolete or unsupported .NET Standard 1.5 - Update all dependencies to the latest compatible versions
1 parent 6a9951e commit bbcfedf

16 files changed

Lines changed: 45 additions & 35 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/setup-dotnet@v4
3838
with:
3939
global-json-file: global.json
40-
dotnet-version: '6.0.x'
40+
dotnet-version: '8.0.x'
4141

4242
- name: Display .NET info
4343
run: dotnet --info

DocoptNet.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.0.32014.148
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.1.11312.151 d18.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{AE631D61-6BE6-438F-A535-955BB9A0218F}"
77
EndProject

eg/NavalFate/NavalFate.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>net6.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

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>net8.0</TargetFramework>
6+
<TargetFramework>net10.0</TargetFramework>
77
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
88
<DebugDocoptNet>false</DebugDocoptNet>
99
</PropertyGroup>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.300",
3+
"version": "10.0.100",
44
"rollForward": "latestPatch"
55
}
66
}

src/DocoptNet.Playground/App.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@* Licensed under terms of MIT license (see LICENSE-MIT)
22
Copyright 2021 Atif Aziz, Dinh Doan Van Bien *@
3-
<Router AppAssembly="@typeof(Program).Assembly" PreferExactMatches="@true">
3+
<Router AppAssembly="@typeof(Program).Assembly">
44
<Found Context="routeData">
55
<RouteView RouteData="@routeData" />
66
</Found>

src/DocoptNet.Playground/DocoptNet.Playground.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</PropertyGroup>
66

77
<ItemGroup>
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" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.22" />
9+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.22" PrivateAssets="all" />
10+
<PackageReference Include="System.Net.Http.Json" Version="8.0.1" />
1111
</ItemGroup>
1212

1313
<!--

src/DocoptNet/DocoptNet.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>netstandard2.1;netstandard2.0;netstandard1.5</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;netstandard2.0;net47</TargetFrameworks>
55
<DefineConstants>$(DefineConstants);DOCOPTNET_PUBLIC</DefineConstants>
66
<!--
77
TODO Remove the suppression of the following warnings after addressing them:
@@ -37,19 +37,19 @@ Portions Copyright (C) .NET Foundation and Contributors.
3737
Portions Copyright (C) West Wind Technologies, 2008.
3838
</Copyright>
3939
<PackageTags>parser;command line argument;option library;syntax;shell;beautiful;posix;python;console;command-line;docopt</PackageTags>
40+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
4041
</PropertyGroup>
4142

4243
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netstandard2.0'">
4344
<DefineConstants>$(DefineConstants);RUNTIME_SERIALIZATION</DefineConstants>
4445
</PropertyGroup>
4546

46-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.5'">
47-
<PackageReference Include="System.Collections.NonGeneric" Version="4.3.0" />
47+
<ItemGroup Condition="'$(TargetFramework)' == 'net47'">
4848
<Compile Remove="CodeGeneration\*.cs" />
4949
<None Include="CodeGeneration\*.cs" />
5050
</ItemGroup>
5151

52-
<ItemGroup Condition="'$(TargetFramework)' != 'netstandard1.5'">
52+
<ItemGroup Condition="'$(TargetFramework)' != 'net47'">
5353
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.10.0" PrivateAssets="all" />
5454
<AdditionalFiles Include="CodeGeneration\AnalyzerReleases.*.md" />
5555
</ItemGroup>
@@ -72,19 +72,19 @@ Portions Copyright (C) West Wind Technologies, 2008.
7272
</ItemGroup>
7373

7474
<ItemGroup>
75-
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
75+
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.39">
7676
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7777
<PrivateAssets>all</PrivateAssets>
7878
</PackageReference>
7979
<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.14.1">
83+
<PackageReference Include="PolySharp" Version="1.15.0">
8484
<PrivateAssets>all</PrivateAssets>
8585
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
8686
</PackageReference>
87-
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
87+
<PackageReference Include="System.ValueTuple" Version="4.6.1" />
8888
</ItemGroup>
8989

9090
<ItemGroup>

src/DocoptNet/PublicAPI/netstandard1.5/PublicAPI.Unshipped.txt renamed to src/DocoptNet/PublicAPI/net47/PublicAPI.Shipped.txt

File renamed without changes.

src/DocoptNet/PublicAPI/netstandard1.5/PublicAPI.Shipped.txt renamed to src/DocoptNet/PublicAPI/net47/PublicAPI.Unshipped.txt

File renamed without changes.

0 commit comments

Comments
 (0)