Skip to content

Commit 742ecbf

Browse files
Build as NET10
1 parent 3c7def2 commit 742ecbf

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v1
17-
- uses: actions/setup-dotnet@v1
17+
- uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: '10.0.x'
1820

1921
- name: Setup NuGet
2022
run: dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"

generator/modules/csharp-netcore/TestProject.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<RootNamespace>{{testPackageName}}</RootNamespace>
1919
<AssemblyName>{{testPackageName}}</AssemblyName>
2020
<!-- By Microsoft design, test project can only be netcoreapp2.0 (even if main project is .netstandard -->
21-
<TargetFramework>net8.0</TargetFramework>
21+
<TargetFramework>net10.0</TargetFramework>
2222
<IsPackable>false</IsPackable>
2323
<FileAlignment>512</FileAlignment>
2424
</PropertyGroup>

generator/modules/csharp-netcore/netcore_testproject.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1515
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
1616
<RootNamespace>{{testPackageName}}</RootNamespace>
17-
<TargetFramework>net8.0</TargetFramework>
17+
<TargetFramework>net10.0</TargetFramework>
1818
<IsPackable>false</IsPackable>
1919
</PropertyGroup>
2020

0 commit comments

Comments
 (0)