Skip to content

Shorten NativeAOT and ReadyToRun build paths - #3244

Merged
timcassell merged 2 commits into
dotnet:masterfrom
shubmittal:fix-nativeaot-path-length-3236-pr
Sep 7, 2026
Merged

Shorten NativeAOT and ReadyToRun build paths#3244
timcassell merged 2 commits into
dotnet:masterfrom
shubmittal:fix-nativeaot-path-length-3236-pr

Conversation

@shubmittal

Copy link
Copy Markdown
Contributor

Summary

  • Use a short local intermediate path for generated NativeAOT and ReadyToRun projects.
  • Add regression tests for both generated project types.

This prevents generated linker paths from exceeding Windows path limits.

Fixes #3236

Validation

  • Focused tests: 2 passed.
  • BenchmarkDotNet build passed.
  • BenchmarkDotNet integration-test project build passed.

AI assistance

GitHub Copilot helped implement and validate this change.

@shubmittal

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

Comment thread tests/BenchmarkDotNet.Tests/AotProjectGeneratorTests.cs Outdated
Shubhra Mittal and others added 2 commits September 5, 2026 21:23
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@shubmittal
shubmittal force-pushed the fix-nativeaot-path-length-3236-pr branch from ee7f050 to ab213ea Compare September 6, 2026 14:46

@timcassell timcassell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @shubmittal

@timcassell
timcassell merged commit ed6b326 into dotnet:master Sep 7, 2026
11 checks passed
@timcassell timcassell added this to the v0.16.0 milestone Sep 7, 2026
@shubmittal
shubmittal deleted the fix-nativeaot-path-length-3236-pr branch September 8, 2026 16:13
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.

NativeAot related test failed when linker input file path length over MAX_PATH

2 participants