Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Microsoft.DotNet.Web.targets missing after installing .NET Core RTM

Tags:

asp.net-core

We are migrating our project to .NET Core and I'm uppgrading our build server following the steps presented on this page https://www.microsoft.com/net/core#windows.

After intalling VS 2015 update 3 and DotNetCore.1.0.0-VS2015Tools.Preview2 and building the project I get an error saying: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet.Web\Microsoft.DotNet.Web.targets" was not found. I checked the build server and sure enough the DotNet.Web folder which should be found at C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ is missing.

Why was this not installed and how can I fix this?

like image 759
mstrand Avatar asked Jun 30 '16 13:06

mstrand


1 Answers

The problem was that when I applied the VS Update 3 on VS 2015 I did not check the Microsoft Web Developer Tools option. I had to do the following to get the folder and file in place.

Program and Features -> Visual Studio -> right click and select change -> select modify -> check Microsoft Web Developer Tools -> click update.

After the update run the DotNetCore.1.0.0-VS2015Tools.Preview2.exe file again and select repair (this step is necessary).

This will create the C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet.Web and Microsoft.DotNet.Web.targets file

like image 75
mstrand Avatar answered Oct 05 '22 16:10

mstrand