Skip to content

Commit 4489d05

Browse files
authored
chore: Upgrade to net9.0 (#75)
.NET 9.0 is the most recent official release, this change updates scip-dotnet to support it.
1 parent 3091787 commit 4489d05

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+5008
-112
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-dotnet@v3
1212
with:
13-
dotnet-version: 8.x
13+
dotnet-version: 9.x
1414
- run: dotnet pack
1515
- run: dotnet nuget push 'ScipDotnet/bin/Release/*.nupkg' --source 'nuget.org' --api-key '${{ secrets.NUGET_APIKEY }}' --skip-duplicate
1616
docker-push:
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020
- uses: actions/setup-dotnet@v3
2121
with:
22-
dotnet-version: 8.x
22+
dotnet-version: 9.x
2323
- uses: docker/setup-buildx-action@v2
2424
- run: echo "PATCH=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2525
- run: echo "MINOR=${PATCH%.*}" >> $GITHUB_ENV

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
dotnet-version: |
1818
7.x
1919
8.x
20+
9.x
2021
- run: dotnet format --verify-no-changes
2122
- run: dotnet format --verify-no-changes
2223
working-directory: snapshots/input/syntax
@@ -34,6 +35,8 @@ jobs:
3435
6.x
3536
7.x
3637
8.x
38+
9.x
39+
- run: dotnet test -p:TargetFrameworks=net9.0
3740
- run: dotnet test -p:TargetFrameworks=net8.0
3841
- run: dotnet test -p:TargetFrameworks=net7.0
3942
- run: dotnet test -p:TargetFrameworks=net6.0

ScipDotnet.Tests/ScipDotnet.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>
@@ -22,4 +22,4 @@
2222
<ProjectReference Include="..\ScipDotnet\ScipDotnet.csproj" />
2323
</ItemGroup>
2424

25-
</Project>
25+
</Project>

ScipDotnet/ScipDotnet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageLicenseFile>LICENSE</PackageLicenseFile>
99
<PackageReadmeFile>readme.md</PackageReadmeFile>
1010
<PackageType>DotnetTool</PackageType>
11-
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
11+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
1212
<PackAsTool>true</PackAsTool>
1313
<AssemblyName>scip-dotnet</AssemblyName>
1414
<RepositoryUrl>https://github.com/sourcegraph/scip-dotnet</RepositoryUrl>

global.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"version": "7.0.0",
3+
"version": "9.0.100",
44
"rollForward": "latestMajor",
5-
"allowPrerelease": true
5+
"allowPrerelease": false
66
}
7-
}
7+
}

snapshots/input/WpfApplication/WpfApplication/WpfApplication.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net7.0-windows</TargetFramework>
5+
<TargetFramework>net9.0-windows</TargetFramework>
66
<Nullable>enable</Nullable>
77
<UseWPF>true</UseWPF>
88
</PropertyGroup>
99

10-
</Project>
10+
</Project>

snapshots/input/syntax/Main/Main.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-
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
5+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
88
<LangVersion>preview</LangVersion>

snapshots/input/syntax/VBMain/VBMain.vbproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<RootNamespace>VBMain</RootNamespace>
6-
<TargetFrameworks>net7.0;net6.0</TargetFrameworks>
6+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0</TargetFrameworks>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="DiffPlex" Version="1.7.1" />
1111
</ItemGroup>
1212

13-
</Project>
13+
</Project>

snapshots/output-net8.0/syntax/VBMain/CaseInsensitive.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
' ^^^^^^^^^^^ definition scip-dotnet nuget . . VBMain/CaseInsensitive#DifferentCase().(wEiRdCaSiNg)
1010
' documentation ```vb\nwEiRdCaSiNg As String\n```
1111
Console.WriteLine(WeIrDcAsInG)
12-
' ^^^^^^^ reference scip-dotnet nuget System.Console 7.0.0.0 System/Console#
13-
' ^^^^^^^^^ reference scip-dotnet nuget System.Console 7.0.0.0 System/Console#WriteLine(+11).
12+
' ^^^^^^^ reference scip-dotnet nuget System.Console 8.0.0.0 System/Console#
13+
' ^^^^^^^^^ reference scip-dotnet nuget System.Console 8.0.0.0 System/Console#WriteLine(+11).
1414
' ^^^^^^^^^^^ reference scip-dotnet nuget . . VBMain/CaseInsensitive#DifferentCase().(wEiRdCaSiNg)
1515
End Sub
1616
End Class

snapshots/output-net8.0/syntax/VBMain/Classes.vb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Namespace VBMain
77
' ^^^^^^ reference scip-dotnet nuget . . VBMain/
88
<SuppressMessage("ReSharper", "all")>
9-
' ^^^^^^^^^^^^^^^ reference scip-dotnet nuget System.Runtime 7.0.0.0 CodeAnalysis/SuppressMessageAttribute#`.ctor`().
9+
' ^^^^^^^^^^^^^^^ reference scip-dotnet nuget System.Runtime 8.0.0.0 CodeAnalysis/SuppressMessageAttribute#`.ctor`().
1010
Public Class Classes
1111
' ^^^^^^^ definition scip-dotnet nuget . . VBMain/Classes#
1212
' documentation ```vb\nClass Classes\n```
@@ -43,10 +43,10 @@
4343
Protected Overrides Sub Finalize()
4444
' ^^^^^^^^ definition scip-dotnet nuget . . VBMain/Classes#Finalize().
4545
' documentation ```vb\nProtected Overrides Sub Classes.Finalize()\n```
46-
' relationship implementation reference scip-dotnet nuget System.Runtime 7.0.0.0 System/Object#Finalize().
46+
' relationship implementation reference scip-dotnet nuget System.Runtime 8.0.0.0 System/Object#Finalize().
4747
Console.WriteLine(42)
48-
' ^^^^^^^ reference scip-dotnet nuget System.Console 7.0.0.0 System/Console#
49-
' ^^^^^^^^^ reference scip-dotnet nuget System.Console 7.0.0.0 System/Console#WriteLine(+7).
48+
' ^^^^^^^ reference scip-dotnet nuget System.Console 8.0.0.0 System/Console#
49+
' ^^^^^^^^^ reference scip-dotnet nuget System.Console 8.0.0.0 System/Console#WriteLine(+7).
5050
End Sub
5151

5252
Public Class ObjectClass

0 commit comments

Comments
 (0)