dotnet build for ASP.NET Core app on macOS fails due to missing Microsoft.NETCore.App package for RC1
See original GitHub issueSteps to reproduce
Build justeat/httpclient-interception#23 at e53fd38 for macOS in Travis CI.
Expected behavior
Build succeeds.
Actual behavior
Build fails with error:
/Users/travis/build/justeat/httpclient-interception/samples/SampleApp/SampleApp.csproj : error NU1102: Unable to find package Microsoft.NETCore.App with version (>= 2.1.0-rc1-26428-03) [/Users/travis/build/justeat/httpclient-interception/samples/SampleApp.Tests/SampleApp.Tests.csproj]
/Users/travis/build/justeat/httpclient-interception/samples/SampleApp/SampleApp.csproj : error NU1102: - Found 32 version(s) in nuget.org [ Nearest version: 2.1.0-rc1 ] [/Users/travis/build/justeat/httpclient-interception/samples/SampleApp.Tests/SampleApp.Tests.csproj]
/Users/travis/build/justeat/httpclient-interception/samples/SampleApp.Tests/SampleApp.Tests.csproj : error NU1102: Unable to find package Microsoft.NETCore.App with version (>= 2.1.0-rc1-26428-03)
/Users/travis/build/justeat/httpclient-interception/samples/SampleApp.Tests/SampleApp.Tests.csproj : error NU1102: - Found 32 version(s) in nuget.org [ Nearest version: 2.1.0-rc1 ]
The same commit builds successfully in Travis CI for Linux and in AppVeyor for Windows.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
The specified framework 'Microsoft.AspNetCore.App' ...
The Microsoft.AspNetCore.App NuGet packages are supposed to be referenced without a version so that the installed tooling can pick an ...
Read more >Why am I getting 'Unable to find package Microsoft. ...
I was working just fine yesterday but this morning I opened my project and began getting 'Unable to find package Microsoft.AspNetCore.App.Ref.' ...
Read more >Troubleshoot app launch failures
Learn about common reasons for app launch failures and possible solutions.
Read more >ASP.NET Core updates in .NET 7 Release Candidate 1
NET 7 Release Candidate 1 (RC1) is now available and includes many great new improvements to ASP.NET Core. Here's a summary of what's...
Read more >Install .NET on macOS
In this article, you'll learn how to install .NET on macOS. .NET is made up of the runtime and the SDK. The runtime...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@martincostello check out dotnet/cli#9231, I was getting the exact same error
error NU1102: Unable to find package Microsoft.NETCore.App with version (>= 2.1.0-rc1-26428-03)
Yep, that was it. I’ve just re-run the macOS Travis CI build and now it passes like the Windows and Linux ones.