Skip to content

[release/dev17.12] Use repository NuGet config in tests - #13224

Merged
JoeRobich merged 1 commit into
release/dev17.12from
copilot/backport-nuget-test-fix
Aug 18, 2026
Merged

JoeRobich merged 1 commit into
release/dev17.12from
copilot/backport-nuget-test-fix

Conversation

@JoeRobich

@JoeRobich JoeRobich commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

Backports the applicable parts of #13157 to release/dev17.12.

The Linux leg of official build 3031693 had 123 failures because Roslyn test infrastructure attempted to resolve reference assemblies from api.nuget.org, which is blocked in official builds. Configure both affected call sites to use the repository NuGet.config and its approved Azure feeds.

Unlike #13157, this does not update analyzer-testing packages: the version already used by this branch supports WithNuGetConfigFilePath. The source-generator change from that PR is also inapplicable because that test does not exist on this branch.

Testing

  • ./eng/common/build.sh --restore --build --test --configuration Release --projects <Razor.Diagnostics.Analyzers.Test.csproj>
  • ./eng/common/build.sh --restore --build --test --configuration Release --projects <Microsoft.AspNetCore.Razor.LanguageServer.Test.csproj>
    Test Rum

Backport the intent of #13157 so runtime reference assembly resolution uses the approved repository package sources instead of nuget.org.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: ec59e386-5d01-4ea8-9edd-050525aeed23
@JoeRobich
JoeRobich merged commit 212c808 into release/dev17.12 Aug 18, 2026
11 checks passed
@JoeRobich
JoeRobich deleted the copilot/backport-nuget-test-fix branch August 18, 2026 11:49
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.

2 participants