Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Preview for Mac 2017 .NET Core build error

When I try to run the .NET Core Project on last version of Visual Studio Preview for Mac, I get next error:

The specified framework 'Microsoft.NETCore.App', version '1.0.1' 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.1'.
The application was terminated by a signal: SIGQUIT

WARNING: The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use Microsoft.NETCore.App 1.0.0 or newer. This may be expected if the target process did not run .NET code.

I opened Project Settings, and in the 'Target Framework' Dropdown there is no .NETCoreApp 1.1, only 1.0 (which is not installed)

What should I change in project or Studio configs for project to run successfully? Or I just must wait for VS update? Thanks for response.

like image 928
Ted Romanus Avatar asked Nov 20 '16 02:11

Ted Romanus


2 Answers

Update your nuget packages i.e Project -> Update Nuget Packages. The Microsoft.NetCore.App package is out of date.

like image 184
Robb Vandaveer Avatar answered Nov 10 '22 18:11

Robb Vandaveer


  • Step 1: setup .net Core

    --> https://www.microsoft.com/net/core#macos

    --> if you get donet new command not found, try this: ln -s /usr/local/share/dotnet/dotnet /usr/local/bin/

  • Step 2: update packages

update packages

like image 3
fatihyildizhan Avatar answered Nov 10 '22 18:11

fatihyildizhan