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.

Fresh Mac Install: "The specified framework 'Microsoft.NETCore.App', version '1.0.0' was not found."

See original GitHub issue

Steps to reproduce

I’m a first-timer; just installed dotnet-dev-osx-x64.1.0.0-preview2-1-003177.pkg

The hello world sequence worked fine - I ran into problems setting up a webapp via https://docs.microsoft.com/en-us/azure/app-service-web/web-sites-create-web-app-using-vscode

If i do the dotnet build or dotnet ef ... steps, I get the following output:

The specified framework ‘Microsoft.NETCore.App’, version ‘1.0.0’ was not found.

  • Check application dependencies and target a framework version installed at: /usr/local/share/dotnet/shared/Microsoft.NETCore.App
  • The following versions are installed: 1.1.0
  • Alternatively, install the framework version ‘1.0.0’.

I think the “fix” is for me to trace through project.lock.json, hunt down all the dependencies with NETCore.App 1.0.0 dependencies, and try to modify them to use a newer dependency version. Still, it’s a bit of a downer in the new user onboarding experience, so I’m reporting it here.

Expected behavior

dotnet ef and dotnet run commands work without issue

Actual behavior

The specified framework ‘Microsoft.NETCore.App’, version ‘1.0.0’ was not found.

  • Check application dependencies and target a framework version installed at: /usr/local/share/dotnet/shared/Microsoft.NETCore.App
  • The following versions are installed: 1.1.0
  • Alternatively, install the framework version ‘1.0.0’.

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-preview2-1-003177)

Product Information: Version: 1.0.0-preview2-1-003177 Commit SHA-1 hash: a2df9c2576

Runtime Environment: OS Name: Mac OS X OS Version: 10.11 OS Platform: Darwin RID: osx.10.11-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:20 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
threeninecommented, Dec 8, 2016

Just thought I would add. I had this same issue. I did not install .NET Core 1.01

All I did to get this working on my Mac with .NET Core 1.1. is right click on the project file in the Solution Explorer and Update Nuget Packages and I was then able to run the application

4reactions
glenn-barnettcommented, Nov 17, 2016

Installing .NET Core 1.0.1 SDK (package) fixed my issue - the problem seems to be the Yeoman templates (yo aspnet) are not yet ready for 1.1.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

"The specified framework 'Microsoft.NETCore.App', version ...
Fresh Mac Install : "The specified framework 'Microsoft.NETCore.App', version '1.0.0' was not found." #7191.
Read more >
The specified framework 'Microsoft.NETCore.App', version ...
NETCore.App', version '2.2.0' was not found. - The following frameworks were found: 1.0.1 at [C:\Program Files\ ...
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 >
Troubleshooting NuGet Package Restore in Visual Studio
This error occurs when you attempt to build a project that contains references to one or more NuGet packages, but those packages are...
Read more >
The specified version of Microsoft.NetCore.App or ...
I have upgraded my Web API from version netcoreapp3.1 to version net6.0. When I launch it from Visual studio as localhost, it will...
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