Skip to content

Treat installer scenario-tests reference as a build-only dependency - #10392

Merged
akoeplinger merged 1 commit into
mainfrom
fix-installer-scenario-build-reference
Oct 22, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
fix-installer-scenario-build-reference

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

Fixes the Linux x64 and arm64 installer-validation restore failures in official build 3113005.

Microsoft.DotNet.Installer.Tests targets the SDK-bundled framework (net11.0), while the VMR scenario-tests.proj orchestration project targets NetCurrent (net12.0). Their ordinary project reference therefore fails NuGet restore with NU1201.

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:

./.dotnet/dotnet restore test/Microsoft.DotNet.Installer.Tests/Microsoft.DotNet.Installer.Tests.csproj -p:NuGetAudit=false

Failed with NU1201 before the fix; passed afterward. The resulting restore graph no longer includes scenario-tests as an assembly dependency.

./.dotnet/dotnet msbuild test/Microsoft.DotNet.Installer.Tests/Microsoft.DotNet.Installer.Tests.csproj -t:PrepareProjectReferences -p:BuildProjectReferences=false -nologo

Failed with only ReferenceOutputAssembly="false"; passed with both flags, confirming that the second flag is required too.

./.dotnet/dotnet build test/Microsoft.DotNet.Installer.Tests/Microsoft.DotNet.Installer.Tests.csproj -c Release -p:NuGetAudit=false

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.

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
Copilot AI balanced review requested due to automatic review settings October 22, 2026 11:12
@akoeplinger
akoeplinger requested review from a team as code owners October 22, 2026 11:12
@azure-pipelines

Copy link
Copy Markdown
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.

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 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
akoeplinger enabled auto-merge (squash) October 22, 2026 11:28
@akoeplinger
akoeplinger merged commit 7818868 into main Oct 22, 2026
12 checks passed
@akoeplinger
akoeplinger deleted the fix-installer-scenario-build-reference branch October 22, 2026 13:09
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.

3 participants