Skip to content

Use configured NuGet source for analyzer tests - #1657

Open
Andrew Arnott (AArnott) wants to merge 2 commits into
mainfrom
aarnott-fix-isolated-ci-restore
Open

Use configured NuGet source for analyzer tests#1657
Andrew Arnott (AArnott) wants to merge 2 commits into
mainfrom
aarnott-fix-isolated-ci-restore

Conversation

@AArnott

Copy link
Copy Markdown
Member

The isolated DevDiv pipeline fails because analyzer tests that override their reference assemblies bypass the repository's NuGet configuration and attempt to contact nuget.org directly.

This centralizes the .NET 8 and .NET Framework 2.0 reference assembly configurations in ReferencesHelper, preserving each test's intended framework while routing package resolution through the authenticated msft_consumption_public feed. All explicit reference assembly overrides now use these isolation-safe configurations.

The analyzer test project passes across net8.0, net8.0-windows, and net472 with 1,869 tests passed and 27 skipped.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1d82770a-b36c-40a8-95a6-4f807773da09
Copilot AI lite review requested due to automatic review settings August 24, 2026 23:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates analyzer tests to use repository-configured NuGet sources for reference assembly restoration.

Changes:

  • Centralizes .NET 8 and .NET Framework 2.0 reference configurations.
  • Replaces direct framework reference overrides in analyzer tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
test/Microsoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD104OfferAsyncOptionAnalyzerTests.cs Updated as part of this pull request.
test/Microsoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD103UseAsyncOptionAnalyzerTests.cs Updated as part of this pull request.
test/Microsoft.VisualStudio.Threading.Analyzers.Tests/VSTHRD002UseJtfRunAnalyzerTests.cs Updated as part of this pull request.
test/Microsoft.VisualStudio.Threading.Analyzers.Tests/Helpers/ReferencesHelper.cs Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 1d82770a-b36c-40a8-95a6-4f807773da09
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