Skip to content

Target net11.0, update dependencies and use NuGet trusted publishing - #5

Merged
NotOfficer merged 3 commits into
masterfrom
feat/net11-trusted-publishing
Nov 13, 2026
Merged

NotOfficer merged 3 commits into
masterfrom
feat/net11-trusted-publishing

Conversation

@NotOfficer

Copy link
Copy Markdown
Owner

Adds a net11.0 target next to net10.0, updates dependencies (GenericReader 3.0.0, OffiUtils 4.0.0, test packages) and bumps the package to 3.4.0. Pushing to master publishes it.

Build

  • PublishAot is removed from Directory.Build.props because it does nothing for a library. IsAotCompatible stays.
  • On net11.0 the tests stop registering the ZstdSharp decompressor and use the default Zstd decompressor from OffiUtils (#if !NET11_0_OR_GREATER in Tests.cs).

CI

  • Publishing now has its own publish job. It downloads the packed artifact and gets a short-lived API key from NuGet/login using the GitHub OIDC token. Only that job has id-token: write; restore, build and tests run with contents: read.
  • New test.yml builds and tests pull requests against master.
  • Tests run through dotnet test on Microsoft.Testing.Platform, which src/global.json selects.

Other

  • .gitattributes with * text=auto. Files in the index were already LF, so no files are renormalized.

Before merging: nuget.org needs a trusted publishing policy for the Fortnite-API account that covers NotOfficer/Usmap.NET and build-test-publish.yml. Without it the login step fails and 3.4.0 is not published. After that, the NUGET_API_KEY secret can be deleted.

Validation: I ran dotnet build -c Release (0 warnings) and dotnet test -c Release locally with the .NET 10.0.102 and 11.0.100 SDKs. All 21 tests passed on each TFM (42 total). I haven't run the publish job.

🤖 Generated by Opus 5.5 with Claude Code in T3 Code

NotOfficer and others added 3 commits November 13, 2026 09:36
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds net11.0 next to net10.0 and moves to GenericReader 3.0.0 and
OffiUtils 4.0.0. On net11.0 the tests no longer register the ZstdSharp
decompressor, so they use the default Zstd decompressor from OffiUtils.

PublishAot is dropped because it has no effect on a library;
IsAotCompatible stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Publishing moves to its own job that logs in through NuGet/login with
the GitHub OIDC token, so only that job gets id-token: write and the
NUGET_API_KEY secret is no longer used. A new workflow builds and tests
pull requests against master.

Tests run through dotnet test on Microsoft.Testing.Platform, selected in
global.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@NotOfficer
NotOfficer merged commit d94afba into master Nov 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant