无法在Visual Studio 2015中构建,因为找不到"Microsoft.Build.Tasks.v14.0.dll" [英] Can't build in visual studio 2015 because 'Microsoft.Build.Tasks.v14.0.dll' cannot be found

查看:295
本文介绍了无法在Visual Studio 2015中构建,因为找不到"Microsoft.Build.Tasks.v14.0.dll"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试在Visual Studio 2015中进行构建时,缺少以下文件吗?该项目以前是在VS2013中构建的.

When attempting to build in visual studio 2015, the following file is missing? This project was previously being built in VS2013.

严重性代码说明项目文件行错误任务工厂 无法从程序集"C:\ Program"中加载"CodeTaskFactory" 文件(x86)\ MSBuild \ 14.0 \ bin \ Microsoft.Build.Tasks.v14.0.dll".可以 无法加载文件或程序集'file:///C:\ Program Files (x86)\ MSBuild \ 14.0 \ bin \ Microsoft.Build.Tasks.v14.0.dll'或其中之一 依赖关系.该系统找不到指定的文件.

Severity Code Description Project File Line Error The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.v14.0.dll". Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.v14.0.dll' or one of its dependencies. The system cannot find the file specified.

推荐答案

程序集已重命名.在CodeTaskFactory MSBuild Task上,将AssemblyFile参数更改为...(在您的错误中,应存在此任务所在的目标文件名)

The assembly has been renamed. Change on the CodeTaskFactory MSBuild Task the AssemblyFile parameter to...(in your error there should be a targets file name where this task resides)

AssemblyFile="C:\Program Files (x86)\MSBuild\14.0\Bin\Microsoft.Build.Tasks.Core.dll"

有些人试图变得聪明,并使用像这样的MSBuild属性.(这不适用于MSBuild 14,但适用于12)...

Chances are someone tried to be clever and use an MSBuild property like this..(which doesn't work for MSBuild 14 but would for 12)...

AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v$(MSBuildToolsVersion).dll"

仅供参考...还有一些其他内容,例如Microsoft.Build.Utilities.v12.0.dll已重命名为Microsoft.Build.Utilities.Core.dll

Just fyi...There are some others as well such as Microsoft.Build.Utilities.v12.0.dll has been renamed to Microsoft.Build.Utilities.Core.dll

这篇关于无法在Visual Studio 2015中构建,因为找不到"Microsoft.Build.Tasks.v14.0.dll"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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