Open mmitche opened 2 days ago
@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:
powershell -ExecutionPolicy ByPass -NoProfile -command "& eng\common\Build.ps1 -restore /bl"
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.