简体   繁体   English

VS 2015 Toolset可能未知或缺失

[英]VS 2015 Toolset may be unknown or missing

I try to publish project to my file directory. 我尝试将项目发布到我的文件目录。

I take a this message. 我接受了这个消息。 But do not shown any error. 但是没有显示任何错误。 Error list is empyty. 错误列表是empyty。

2> Building with tools version "14.0". 2>使用工具版本“14.0”构建。

2> Project file contains ToolsVersion="12.0". 2>项目文件包含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. 此工具集可能未知或缺失,在这种情况下,您可以通过安装相应版本的MSBuild来解决此问题,或者出于策略原因,可能已将构建强制转换为特定的ToolsVersion。 Treating the project as if it had ToolsVersion="14.0". 将项目视为具有ToolsVersion =“14.0”。 For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424 . 有关详细信息,请参阅http://go.microsoft.com/fwlink/?LinkId=293424 2> Target "ValidateMSBuildToolsVersion" skipped. 2>跳过目标“ValidateMSBuildToolsVersion”。 Previously built unsuccessfully. 以前建成不成功。 2>Done building project "project_name.csproj" – FAILED. 2>完成构建项目“project_name.csproj” - 失败。 2> ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Publish: 0 succeeded, 1 failed, 0 skipped ========== 2> ==========构建:1成功,0失败,0最新,0跳过========== ==========发布:0成功,1失败,0跳过==========

VS 2015 Toolset may be unknown or missing VS 2015 Toolset可能未知或缺失

According to the error message " Project file contains ToolsVersion="12.0". ", it shows that your project was upgraded from Visual Studio 2013. So when you publish it with Visual Studio 2015, you may get this error " This toolset may be unknown or missing... " 根据错误消息“ 项目文件包含ToolsVersion =”12.0“。 ”,它表明您的项目已从Visual Studio 2013升级。因此,当您使用Visual Studio 2015发布它时,您可能会收到此错误“ 此工具集可能未知或者失踪......

To resolve this issue, you can try to update your project file: Right your project->Unload project->Edit Yourprojectname.csproj->change the ToolsVersion="12.0" to ToolsVersion="14.0" in the second line. 要解决此问题,您可以尝试更新项目文件:右键您的项目 - >卸载项目 - >编辑Yourprojectname.csproj->在第二行中将ToolsVersion="12.0"更改为ToolsVersion="14.0"

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

If you are using MSBuild command line build your project, you can can override the ToolsVersion Settings of Projects and Solutions by using command prompt: 如果使用MSBuild命令行构建项目,则可以使用命令提示符覆盖项目和解决方案的ToolsVersion设置:

msbuild.exe someproj.proj /tv:14.0

你为什么不尝试从V2.6.1改变“Microsoft.Net.Compilers”的版本V2.4.0按照说明这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM