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

Another attempt to fix the SDK insertion issue related to runtime/apphost downloads #77845

Merged
merged 3 commits into from
Mar 27, 2025

Conversation

ToddGrun
Copy link
Contributor

@ToddGrun ToddGrun commented Mar 26, 2025

It was previously mentioned that instead of modifying the RuntimeIdentifiers property to attempt to avoid downloading the runtime/apphost packages during build, we could use the EnableRuntimePackDownload/EnableAppHostPackDownload flags instead. Earlier attempts to use these failed, very likely due to a poor understanding by me how msbuild propogates properties.

This PR reinstates setting the RuntimeIdentifiers property in all context as we did before, and utilizes the flags instead to indicate that we only want these packages downloaded during the restore/pack that we do when packing.

@ToddGrun ToddGrun requested a review from a team as a code owner March 26, 2025 17:58
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 26, 2025
<RuntimeIdentifiers Condition="'$(BaseOS)' != ''">$(BaseOS)</RuntimeIdentifiers>
<RuntimeIdentifiers Condition="'$(TargetRid)' == '' and '$(BaseOS)' == ''">win-x64;win-arm64;linux-x64;linux-arm64;linux-musl-x64;linux-musl-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>

<!-- These indicate that the runtime/apphost packages should not be downloaded as part of build/restore -->
Copy link
Member

Choose a reason for hiding this comment

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

You might want to expand on this comment to explain why we're turning this off.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do in follow up

@jasonmalinowski
Copy link
Member

@ToddGrun I hope this works because it's nice and clean!

Copy link
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

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

agreed, this change is much clearer as to what is going on

@ToddGrun ToddGrun merged commit 1a06295 into dotnet:main Mar 27, 2025
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants