Skip to content
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

Directory.Build.props: restore previous behavior when targetting 'other' TargetOSes from Windows. #85246

Merged
merged 1 commit into from
May 3, 2023

Conversation

tmds
Copy link
Member

@tmds tmds commented Apr 24, 2023

@ViktorHofer this is a suggestion for #82832 (comment). ptal.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Apr 24, 2023
@ghost
Copy link

ghost commented Apr 24, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

@ViktorHofer this is a suggestion for #82832 (comment). ptal.

Author: tmds
Assignees: -
Labels:

area-Infrastructure-libraries, community-contribution

Milestone: -


<!-- On Windows, we can build for Windows and Mobile.
For other TargetOSes, create a "win" build, built from TargetOS sources and "win" pre-built packages. -->
<_portableOS Condition="'$(HostOS)' == 'win' and '$(TargetsMobile)' != 'true'">win</_portableOS>
Copy link
Member Author

Choose a reason for hiding this comment

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

By setting _portableOS, we're controlling both OutputRID which names the output win, and PackageOS which controls what packages are consumed for the target.

@carlossanlop carlossanlop merged commit 6a5a704 into dotnet:main May 3, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-libraries community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants