-
Notifications
You must be signed in to change notification settings - Fork 53
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
Windowsdesktop attempts to restore cross-OS assets when doing dev-only build #4664
Comments
@ericstj Do you happen to know why an x64 build of windowsdesktop would wanht to download the x86/arm64 Host and Runtime packs? |
Without looking at the binlog, my best guess is that it's the SDK doing it here: https://github.com/dotnet/sdk/blob/899ea4114e44a50586b111dd3c4e338928f6508c/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets#L191-L193 |
@mmitche Just did a local restore only of windowsdeskop:
Here's the source of these: Host packages are coming from https://github.com/dotnet/sdk/blob/899ea4114e44a50586b111dd3c4e338928f6508c/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets#L175 Runtime packs are coming from https://github.com/dotnet/sdk/blob/899ea4114e44a50586b111dd3c4e338928f6508c/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets#L139 It seems you might be able to disable both of them by setting EnableAppHostPackDownload and EnableRuntimePackDownload to false. @dsplaisted |
Thanks. I was mainly surprised that I was getting restores of apphost and runtime package for architectures that I was not building for. |
When doing a dev-only build on windows, windowsdesktop references system.io.ports and a couple other packages. It tries to restore packages built on other architectures.
The text was updated successfully, but these errors were encountered: