Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The following error occurred attempting to run the project model server process (1.0.0-rc4-004771)

Compilation error in Visual Studio 2015 when a new .NET Core 1 web app is created, if you have already installed Visual Studio 2017 RC.

enter image description here

enter image description here

like image 256
Arshath Shameer Avatar asked Feb 24 '17 05:02

Arshath Shameer


2 Answers

I had this problem too, it seems that for some reason the latest .NET Core tools (that is installed via Visual Studio 2017) isn't compatible with Visual Studio 2015 and since it can't load the tools you get this message.

You can fix this in the global.json in your solution folder. Look for the "sdk" section and adjust the "version" to what you have installed on your computer. If you have done a default installation it would reside under %ProgramFiles%\dotnet\sdk.

For example I have a version called 1.0.0-preview.2-1-003180, so my global.json looks like this:

{
  "projects": [ "src" ],
  "sdk": { "version": "1.0.0-preview2-1-003180" }
}
like image 126
Rune G Avatar answered Jan 03 '23 23:01

Rune G


I found a link that fixes this issue very clearly and here is the link. https://chamindac.blogspot.com/2017/02/resolve-msb4019-imported-project.html

like image 44
Arshath Shameer Avatar answered Jan 03 '23 23:01

Arshath Shameer