question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet build for ASP.NET Core app on macOS fails due to missing Microsoft.NETCore.App package for RC1

See original GitHub issue

Steps 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:closed
  • Created 5 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
parekhkbcommented, May 9, 2018

@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)

0reactions
martincostellocommented, May 9, 2018

Yep, that was it. I’ve just re-run the macOS Travis CI build and now it passes like the Windows and Linux ones.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found