runtime: coreclr build failure: Unable to find package Microsoft.AspNetCore.App.Runtime.win-arm
In a clean runtime
clone, I run src\coreclr\build.cmd skipbuildpackages
(using skipbuildpackages
to get around https://github.com/dotnet/runtime/issues/181) and after the native test components build, the build fails with:
BUILDTEST: Restoring CoreCLR product from packages
[11:27:25.30] Restoring all packages...
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-arm with version (= 5.0.0-alpha1.19470.6) [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 178 version(s) in dotnet-core [ Nearest version: 5.0.0-alpha1.19472.2 ] [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 11 version(s) in nuget.org [ Nearest version: 3.1.0-preview3.19555.2 ] [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-corefxlab [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-coreclr [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-eng [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet5-transport [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 with version (= 5.0.0-alpha1.19470.6) [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 175 version(s) in dotnet-core [ Nearest version: 5.0.0-alpha1.19472.2 ] [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 12 version(s) in nuget.org [ Nearest version: 3.1.0-preview3.19555.2 ] [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-corefxlab [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-coreclr [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-eng [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet5-transport [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x86 with version (= 5.0.0-alpha1.19470.6) [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 151 version(s) in dotnet-core [ Nearest version: 5.0.0-alpha1.19472.2 ] [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 12 version(s) in nuget.org [ Nearest version: 3.1.0-preview3.19555.2 ] [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-corefxlab [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-coreclr [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet-eng [f:\gh\runtime2\src\coreclr\tests\build.proj]
f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj : error NU1102: - Found 0 version(s) in dotnet5-transport [f:\gh\runtime2\src\coreclr\tests\build.proj]
Restore failed in 803.73 ms for f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj.
f:\gh\runtime2\src\coreclr\tests\build.proj(56,5): error MSB3073: The command ""C:\Program Files\dotnet\dotnet.exe" restore f:\gh\runtime2\src\coreclr\tests\src\Common\test_dependencies\test_dependencies.csproj /p:SetTFMForRestore=true /p:__BuildOS=Windows_NT /p:__BuildArch=x64 /p:__BuildType=Debug " exited with code 1.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- Fix test build error when .NET Core SDK 5 is installed on the machine (#225) Fixes https://github.com/dotnet/runtime/issues/185 — committed to dotnet/runtime by BruceForstall 5 years ago
- Merge pull request #185 from safern/MergeRuntime Merge runtime/master into feature/NativeAOT — committed to MichalStrehovsky/runtime by jkotas 4 years ago
After @BruceForstall and @safern and I chatted offline we agreed to do the following:
As part of looking into 2, I found that the SDK resolver should actually prefer the closest match: https://github.com/dotnet/core-setup/blob/27063871b42e5c4ee80b8953ebafecb98381d39e/src/corehost/cli/fxr/sdk_resolver.cpp#L376-L400
When I tried this I did observe that behavior. This was a recent change https://github.com/dotnet/core-setup/pull/6953 (/cc @peterhuene @vitek-karas), so its possible the sdkresolver bits you had did not have this fix. Looking at the version of the SDK you had it is 5.0.0-alpha1.19470.6. I believe this build would have fallen in the window where the 5.0 SDK was lagging behind 3.0 and 3.1, I bet if you update to a newer 5.0 machine wide SDK you’ll get @peterhuene’s feature that handles rollForward and the issue will also go away.
Net result: 2 and 3 should not be needed here. If other folks hit this for early builds of the 5.0 SDK then update to the latest 5.0 SDK to get a fix.