安装.NET Core RTM后缺少Microsoft.DotNet.Web.targets [英] Microsoft.DotNet.Web.targets missing after installing .NET Core RTM

查看:89
本文介绍了安装.NET Core RTM后缺少Microsoft.DotNet.Web.targets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将项目迁移到.NET Core,并按照此页面上提供的步骤升级构建服务器. https://www.microsoft.com/net/core#windows .

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.

安装VS 2015 Update 3和DotNetCore.1.0.0-VS2015Tools.Preview2并构建项目后,出现错误消息:导入的项目"C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.找不到"0 \ DotNet.Web \ Microsoft.DotNet.Web.targets".我检查了构建服务器,并确定缺少应该在C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \下找到的DotNet.Web文件夹.

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?

推荐答案

问题是,当我在VS 2015上应用VS Update 3时,我没有检查Microsoft Web Developer Tools选项.我必须执行以下操作才能将文件夹和文件放置到位.

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.

程序和功能-> Visual Studio->右键单击并选择更改->选择修改->检查Microsoft Web Developer工具->单击更新.

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

更新后,再次运行DotNetCore.1.0.0-VS2015Tools.Preview2.exe文件,然后选择修复"(此步骤是必需的).

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

这将创建C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ DotNet.Web和Microsoft.DotNet.Web.targets文件

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

这篇关于安装.NET Core RTM后缺少Microsoft.DotNet.Web.targets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆