Skip to content

Fix native aot outerloop#124773

Merged
MichalStrehovsky merged 1 commit intomainfrom
MichalStrehovsky-patch-2
Feb 24, 2026
Merged

Fix native aot outerloop#124773
MichalStrehovsky merged 1 commit intomainfrom
MichalStrehovsky-patch-2

Conversation

@MichalStrehovsky
Copy link
Member

This got broken in #111514.

Technically this means the change should be labeled as a breaking change, but I'm not sure if these are really user scenarios.

This got broken in #111514.

Technically this means the change should be labeled as a breaking change, but I'm not sure if these are really user scenarios.
@MichalStrehovsky
Copy link
Member Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

@MichalStrehovsky
Copy link
Member Author

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the System.Diagnostics.Process test project’s handling of the LongPath helper assembly to restore NativeAOT outerloop behavior that regressed after #111514, by ensuring the helper DLL is copied as content rather than treated as a referenced assembly.

Changes:

  • Marks the LongPath project reference as non-referenced (ReferenceOutputAssembly=false) while still copying its output to the test output directory.
  • Keeps LongPath.dll excluded from ReadyToRun publish processing.
Comments suppressed due to low confidence (1)

src/libraries/System.Diagnostics.Process/tests/System.Diagnostics.Process.Tests.csproj:90

  • With this ProjectReference now marked as content-only (ReferenceOutputAssembly=false + OutputItemType=Content), the nearby comment about the combination of a regular project reference and a content reference no longer seems to describe the situation in this file. Consider updating that comment (and double-checking whether PublishReadyToRunExclude is still required) so future maintainers understand the real reason for the exclusion.
      <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
      <OutputItemType>Content</OutputItemType>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </ProjectReference>
    <!-- R2R testing does not tolerate the combination of a regular project reference and a content reference. -->
    <!-- This is a bug in the SDK tracked here: https://github.com/dotnet/sdk/issues/30718 -->
    <PublishReadyToRunExclude Include="LongPath.dll" />

@jakobbotsch
Copy link
Member

Fixes #124723 ?

Copy link
Member

@sbomer sbomer left a comment

Choose a reason for hiding this comment

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

Thank you!

@MichalStrehovsky MichalStrehovsky merged commit 0339995 into main Feb 24, 2026
118 of 122 checks passed
@MichalStrehovsky MichalStrehovsky deleted the MichalStrehovsky-patch-2 branch February 24, 2026 21:35
iremyux pushed a commit to iremyux/dotnet-runtime that referenced this pull request Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants