Skip to content

Commit

Permalink
chore: Update templates for .net9 and make .net9 default (#1598)
Browse files Browse the repository at this point in the history
* chore: Update templates for .net9 and make .net9 default

* chore: Update package versions

* Use net9.0 for templates
  • Loading branch information
linkdotnet authored Nov 2, 2024
1 parent d5e6da6 commit 52a009b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ jobs:
with:
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer

- name: Setup .NET
- name: ⚙️ Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
- uses: actions/download-artifact@v4
with:
Expand Down
7 changes: 6 additions & 1 deletion src/bunit.template/template/.template.config/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"description": "The target framework sdk for the project.",
"displayName": "Target framework sdk",
"datatype": "choice",
"defaultValue": "net7.0",
"defaultValue": "net9.0",
"replaces": "targetSdk",
"choices": [
{
Expand All @@ -99,6 +99,11 @@
"choice": "net8.0",
"description": ".net 8.0",
"displayName": ".net 8.0"
},
{
"choice": "net9.0",
"description": ".net 9.0",
"displayName": ".net 9.0"
}
]
}
Expand Down
12 changes: 6 additions & 6 deletions src/bunit.template/template/Company.BlazorTests1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
</ItemGroup>

<ItemGroup Condition="'$(testFramework_xunit)' == 'true'">
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(testFramework_nunit)' == 'true'">
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
</ItemGroup>

<ItemGroup Condition="'$(testFramework_mstest)' == 'true'">
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.2" />
</ItemGroup>

</Project>

0 comments on commit 52a009b

Please sign in to comment.