I have some error while loading the .net project solution. the error will be like
The imported project \"C:\\Program Files(x86)\\MSBuild\\Microsoft\\VisualSt
Although this question has already been answered. I recently came across the same issue. The more specific answer is that you need to install the Visual Studio 2015 Tools (Preview 2)
:
https://www.microsoft.com/net/download/core
Direct Download:
https://go.microsoft.com/fwlink/?LinkId=827546
Because this wasn't straight forward and I was working on a 1.1 dotnet core project, I accidentally skipped this step and only installed the Windows SDK
. I reported an issue here:
https://github.com/dotnet/core/issues/378
You need to install Microsoft .NET Core 1.0.1 tooling preview (the current one is Preview 2).
If you've recently installed VS 2017 and you get this error and your project was using project.json, it's probably that you have to upgrade your solution to csproj rather than the old project.json format. If you open the project in vs2017 it should upgrade it automatically. Check out this article if you need more info Project-json to csproj
Option 1:
Install DotNetCore.1.0.1-VS2015Tools.Preview2.0.3. You can stay in xproj.
Option 2:
Install Visual Studio 2017 and auto upgrade from xproj to csproj.
Option 3:
Follow below steps to upgrade from xproj to csproj and to stay in Visual Studio 2015.
Warning: Using the below process you will not be able to use VS2015 to Load PCM web. Instead you have to stick and work with DOTNET CLI (Command Line Prompt) or VSCode IDE
Step 1: Download and Install .NET Core from this link https://www.microsoft.com/net/download/core
Step 2: Go to global.json
. Modify version number to version installed in PC (for my pc it is 1.0.1
).
Old:
{
"projects": [ "Source" ],
"sdk": { "version": "1.0.0-preview2-003131" }
}
New:
{
"projects": [ ""Source" ],
"sdk": { "version": "1.0.1-*" }
}
Step 3: Goto Command Prompt as administrator and run command
dotnet migrate
dotnet restore
dotnet build
dotnet run
I know that i am quite late to the party, but as someone who has run into these problems time and again, these 2 articles really helped me in understanding why those issues happened in the first place and how to fix them.
a brief update about my current setup: i had both VS2015 and VS2017 installed. I was using VS2015 with .net Core SDK 1.0.0-preview2-003133, which contains .Net Core 1.0.1. Upon installing VS 2017, it automatically installed .Net Core 1.1.0 and set that as the default .Net Core version on my PC, which led to all the problems.
hopefully others would find it useful too :)
no executable found matching command dotnet projectmodel server
developing two versions net core sdk side
It seems that Microsoft entirely rejiggled the solution structure in VS2017... That's how I resolved the issue in VS2017:
hope it helps.