Repository navigation
Treat installer scenario-tests reference as a build-only dependency - #10392
Merged
Merged
Conversation
Exclude the scenario-tests orchestration project from NuGet assembly compatibility checks and MSBuild framework negotiation while preserving its prerequisite build/package step. Co-authored-by: Copilot <[email protected]> Copilot-Session: aab39968-c93b-478a-acee-e9f7b2eefc26
|
Azure Pipelines: Successfully started running 1 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow metadata change addresses the compatibility failure while preserving prerequisite builds, with no blocking issues identified.
No open issues 🎉
What changed in this PR
Makes the installer tests’ scenario-tests reference build-only, resolving the framework compatibility restore failure without retargeting either project.
Changes:
- Adds
ReferenceOutputAssembly="false"to exclude the reference from assembly compatibility checks. - Adds
SkipGetTargetFrameworkProperties="true"to bypass framework negotiation. - Preserves the prerequisite build and existing dependency/extraction options.
| File | Description |
|---|---|
| test/Microsoft.DotNet.Installer.Tests/Microsoft.DotNet.Installer.Tests.csproj | Marks scenario-tests as a build-only dependency while preserving its build configuration. |
Review effort: Balanced
akoeplinger
enabled auto-merge (squash)
October 22, 2026 11:28
mthalman
approved these changes
Oct 22, 2026
This was referenced Oct 24, 2026
This was referenced Nov 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the Linux x64 and arm64 installer-validation restore failures in official build 3113005.
Microsoft.DotNet.Installer.Teststargets the SDK-bundled framework (net11.0), while the VMRscenario-tests.projorchestration project targetsNetCurrent(net12.0). Their ordinary project reference therefore fails NuGet restore withNU1201.The installer tests do not consume an assembly from the orchestration project. They need its build/package step, then unpack the scenario-test package and run it separately against the installed SDK inside Docker.
Mark that reference with:
ReferenceOutputAssembly="false"to exclude it from NuGet assembly compatibility checks.SkipGetTargetFrameworkProperties="true"to bypass MSBuild framework negotiation for the build-only dependency.Preserve the existing dependency/extraction options and prerequisite build. No framework retargeting or scenario-test coverage changes.
Validation
From the VMR root:
Failed with
NU1201before the fix; passed afterward. The resulting restore graph no longer includes scenario-tests as an assembly dependency.Failed with only
ReferenceOutputAssembly="false"; passed with both flags, confirming that the second flag is required too.Passed with zero warnings and errors. The build also rebuilt and packaged scenario-tests, confirming that the prerequisite remains intact.
Linux deb/rpm Docker end-to-end tests were not run locally on macOS.
Note
This pull request was prepared with GitHub Copilot.