问题描述
尝试在 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.
Severity Code 描述 Project File Line Error 任务工厂无法从程序集C:Program文件 (x86)MSBuild14.0inMicrosoft.Build.Tasks.v14.0.dll".可以不加载文件或程序集 'file:///C:Program Files(x86)MSBuild14.0inMicrosoft.Build.Tasks.v14.0.dll' 或其中之一依赖关系.该系统找不到指定的文件.
推荐答案
程序集已重命名.将 CodeTaskFactory MSBuild 任务的 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)MSBuild14.0BinMicrosoft.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"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!