Skip to content

Commit 52a009b

Browse files
authored
chore: Update templates for .net9 and make .net9 default (#1598)
* chore: Update templates for .net9 and make .net9 default * chore: Update package versions * Use net9.0 for templates
1 parent d5e6da6 commit 52a009b

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@ jobs:
163163
with:
164164
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer
165165

166-
- name: Setup .NET
166+
- name: ⚙️ Setup dotnet
167167
uses: actions/setup-dotnet@v4
168+
with:
169+
dotnet-version: |
170+
9.0.x
168171
169172
- uses: actions/download-artifact@v4
170173
with:

src/bunit.template/template/.template.config/template.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"description": "The target framework sdk for the project.",
8383
"displayName": "Target framework sdk",
8484
"datatype": "choice",
85-
"defaultValue": "net7.0",
85+
"defaultValue": "net9.0",
8686
"replaces": "targetSdk",
8787
"choices": [
8888
{
@@ -99,6 +99,11 @@
9999
"choice": "net8.0",
100100
"description": ".net 8.0",
101101
"displayName": ".net 8.0"
102+
},
103+
{
104+
"choice": "net9.0",
105+
"description": ".net 9.0",
106+
"displayName": ".net 9.0"
102107
}
103108
]
104109
}

src/bunit.template/template/Company.BlazorTests1.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@
2525
</ItemGroup>
2626

2727
<ItemGroup Condition="'$(testFramework_xunit)' == 'true'">
28-
<PackageReference Include="xunit" Version="2.9.0" />
29-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
28+
<PackageReference Include="xunit" Version="2.9.2" />
29+
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
3030
<PrivateAssets>all</PrivateAssets>
3131
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3232
</PackageReference>
3333
</ItemGroup>
3434

3535
<ItemGroup Condition="'$(testFramework_nunit)' == 'true'">
36-
<PackageReference Include="NUnit" Version="3.14.0" />
37-
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
36+
<PackageReference Include="NUnit" Version="4.2.2" />
37+
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
3838
</ItemGroup>
3939

4040
<ItemGroup Condition="'$(testFramework_mstest)' == 'true'">
41-
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
42-
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
41+
<PackageReference Include="MSTest.TestAdapter" Version="3.6.2" />
42+
<PackageReference Include="MSTest.TestFramework" Version="3.6.2" />
4343
</ItemGroup>
4444

4545
</Project>

0 commit comments

Comments
 (0)