.NET 4.6.1发布失败的构建成功

时间:2019-05-20 18:42:40

标签: .net

我面临一些奇怪的问题。我的VS 2015项目在构建时发布失败运行没有任何错误。以下是输出日志

2>Project "{PROJECT_NAME}.csproj" (GatherAllFilesToPublish target(s)):
2>    Building with tools version "14.0".
2>    Project file contains ToolsVersion="12.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="14.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
2>    Target "ValidateMSBuildToolsVersion" skipped. Previously built unsuccessfully.
2>Done building project "{PROJECT_NAME}.csproj" -- FAILED.
2>
========== Build: 1 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

我尝试了诸如更改ToolsVersion =“ 14.0”之类的解决方案,但此方法对我不起作用。也尝试过这个solution,但徒劳。

请帮助/建议:)

0 个答案:

没有答案