Skip to content

Allow compatibility tests to resolve .NET 11 targeting packs - #56060

Closed
nagilson with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-apicompat-genapi-tests
Closed

nagilson with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-apicompat-genapi-tests

Conversation

Copilot AI commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

ApiCompat and GenAPI integration-test assets cleared all NuGet sources, preventing Helix restores from resolving exact .NET 11 targeting-pack versions.

  • Restore configuration
    • Remove the asset-local NuGet.Config files.
    • Allow copied assets to inherit repository- and Helix-managed package sources.
    • Preserve normal targeting-pack resolution and package-pruning behavior.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
3 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: nagilson <23152278+nagilson@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix ApiCompat and GenAPI integration tests for .NET 11 packs Allow compatibility tests to resolve .NET 11 targeting packs Sep 1, 2026
Copilot AI requested a review from nagilson September 1, 2026 00:26
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: bbb4dfb0-fdf6-462a-98d4-ec75982c8da2
@mthalman

mthalman commented Sep 1, 2026

Copy link
Copy Markdown
Member

I pushed changes: 1632b95

.NET 11 reference-pack metadata is frozen at preview 7, while the Helix SDK layout contains newer RC1 packs. Tests must therefore restore the frozen packs from repository-managed feeds.

The previous test-specific NuGet configs used <clear /> without retaining those feeds. The changes preserve test isolation and local package sources while allowing framework reference packs to resolve from the managed dotnet11 feeds.

@nagilson
nagilson marked this pull request as ready for review September 2, 2026 19:10
Copilot AI lite review requested due to automatic review settings September 2, 2026 19:10
@nagilson
nagilson requested review from a team as code owners September 2, 2026 19:10
@nagilson
nagilson requested a review from a team September 2, 2026 19:10
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are confined to test assets/helpers and correctly remove the source-clearing behavior that was preventing Helix restores from resolving .NET 11 targeting pack versions.

Pull request overview

Adjusts test-asset NuGet restore configuration so Helix-managed package sources (including .NET 11 feeds) can be used during compatibility integration-test restores, avoiding NU1100 failures for net11 targeting packs.

Changes:

  • Removed asset-local NuGet.Config files that cleared all package sources for ApiCompat and GenAPI test assets.
  • Updated TemplateEngine test helper to generate a per-test nuget.config by starting from the managed test NuGet.config (from the test execution directory), then adding local test/shipping package sources and a temporary global packages folder.
File summaries
File Description
test/TestAssets/TestProjects/GenAPITaskTestProject/NuGet.Config Removed source-clearing config to allow inherited/managed feeds to resolve net11 targeting packs.
test/TestAssets/TestProjects/ApiCompatValidateAssembliesTestProject/NuGet.Config Removed source-clearing config to allow inherited/managed feeds to resolve net11 targeting packs.
test/TemplateEngine/Shared/TestBase.cs Builds a nuget.config from the managed test NuGet.config, sets an isolated global packages folder, and appends local package sources.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label.

@github-actions github-actions Bot added the stale label Nov 4, 2026
@github-actions github-actions Bot closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AI discovered CI] ApiCompat and GenAPI integration tests cannot resolve .NET 11 targeting packs

5 participants