diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55859e1d7..6e106dd43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/src/bunit.template/template/.template.config/template.json b/src/bunit.template/template/.template.config/template.json index f926c5c55..646e9a8ef 100644 --- a/src/bunit.template/template/.template.config/template.json +++ b/src/bunit.template/template/.template.config/template.json @@ -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": [ { @@ -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" } ] } diff --git a/src/bunit.template/template/Company.BlazorTests1.csproj b/src/bunit.template/template/Company.BlazorTests1.csproj index 2801d2147..35e5fe7d5 100644 --- a/src/bunit.template/template/Company.BlazorTests1.csproj +++ b/src/bunit.template/template/Company.BlazorTests1.csproj @@ -25,21 +25,21 @@ - - + + all runtime; build; native; contentfiles; analyzers - - + + - - + +