Skip to content

Commit

Permalink
Update to .NET SDK 9
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Jan 26, 2025
1 parent 654441c commit 46d1071
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
name: "Build"
runs-on: ${{ matrix.os }}
env:
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: true
DOTNET_NOLOGO: true
strategy:
fail-fast: false
Expand All @@ -25,6 +26,7 @@ jobs:
with:
dotnet-version: |
8.0.x
9.0.x
- name: Get .NET information
run: dotnet --info
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/push-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: "Build"
runs-on: windows-2022
env:
DOTNET_CLI_WORKLOAD_UPDATE_NOTIFY_DISABLE: true
DOTNET_NOLOGO: true
steps:
- name: Clone source
Expand All @@ -24,6 +25,7 @@ jobs:
with:
dotnet-version: |
8.0.x
9.0.x
- name: Get .NET information
run: dotnet --info
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"version": "9.0.100",
"rollForward": "latestMinor"
}
}
8 changes: 1 addition & 7 deletions tools/builder/targets/Packages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ public static async Task OnExecute(BuildContext context)
foreach (var packageFile in packageFiles)
File.Delete(packageFile);

// You can't see the created package name in .NET 9+ SDK without doing detailed verbosity
var verbosity =
context.DotNetSdkVersion.Major <= 8
? context.Verbosity.ToString()
: "detailed";

await context.Exec("dotnet", $"pack --nologo --no-build --configuration {context.ConfigurationText} --output {context.PackageOutputFolder} --verbosity {verbosity} src/xunit.analyzers -p:NuspecFile=xunit.analyzers.nuspec");
await context.Exec("dotnet", $"pack --nologo --no-build --configuration {context.ConfigurationText} --output {context.PackageOutputFolder} --verbosity {context.Verbosity} src/xunit.analyzers -p:NuspecFile=xunit.analyzers.nuspec -tl:off");
}
}

0 comments on commit 46d1071

Please sign in to comment.