Skip to content

Fix the ArtifactsPackagingDir on win-x64 #10411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

ViktorHofer
Copy link
Member

@ViktorHofer ViktorHofer commented Feb 5, 2025

Without this fix, the Microsoft.NET.Sdk.WindowsDesktop package is missing the "tools" folder when being built on win-x64.

This happens because the PresentationBuildTasks project targest AnyCPU and so the artifacts aren't present in the ArtifactsPackagingDir with the platform. This is basically a wrong expectation in packaging.props as the Platform isn't aligned between a packable project and its project dependencies.

Fixes dotnet/source-build#4888
Unblocks dotnet/sdk#46550

Without this fix, the Microsoft.NET.Sdk.WindowsDesktop package is missing the "tools" folder when being built on win-x64.

This happens because the PresentationBuildTasks project targest AnyCPU and so the artifacts aren't present in the ArtifactsPackagingDir with the platform. This is basically a wrong expectation in packaging.props as the Platform isn't aligned between a packable project and its project dependencies.
@ViktorHofer ViktorHofer merged commit 9b00d1e into main Feb 5, 2025
8 checks passed
@ViktorHofer ViktorHofer deleted the FixWindowsDesktopSdkPackageContent branch February 5, 2025 19:00
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Microsoft.NET.Sdk.WindowsDesktop package is missing the tools folder on the win-x64 vertical in the VMR
2 participants