Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft.DotNet.Props was not found

I have some error while loading the .net project solution. the error will be like

The imported project "C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found.Confirm that the path in the <Import> declaration is correct, and that the file exist on disk.

How to solve this problem?

like image 248
Navaneethan Avatar asked Aug 18 '16 14:08

Navaneethan


3 Answers

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

like image 170
Jon Douglas Avatar answered Nov 12 '22 06:11

Jon Douglas


You need to install Microsoft .NET Core 1.0.1 tooling preview (the current one is Preview 2).

like image 43
Jay Haybatov Avatar answered Nov 12 '22 04:11

Jay Haybatov


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

like image 13
Frank Cannon Avatar answered Nov 12 '22 06:11

Frank Cannon