VS2012 ToolsVersion="12.0" 设置,但此工具集未知或缺失

    xiaoxiao2021-03-25  121

    VS2012 打开 VS2013创建的工程,会报错误:

    项目文件包含 ToolsVersion="12.0" 设置,但此工具集未知或缺失。您可以通过为此工具集安装相应的 .NET Framework 来解决此问题。将项目视为具有 ToolsVersion="4.0" 设置。

    projectfile contains ToolsVersion="12.0" this toolset is unknown or missing, in which case  you may  be able to resolve this by installing the appropriiate version of msbuild ,or the build ma have been ....

    1、将属性-常规-平台工具集   选择为  VS2012 V110

    2、将 xxxx.vcxproj 用写字本打开,  将 ToolsVersion="12.0"  修改为  ToolsVersion="4.0"

    VS2013对应12.0,VS2012对应4.0

    error : Required file tracker.exe is missing

    其实就是找到你的项目文件xxxx.vcxproj,使用编辑器打开,是xml格式的定义文件,查找关键字 PropertyGroup

    会发现有几个这样的配置,然后在这样的关键附近插入如下代码:

    <!-- for example in the project file -->       <PropertyGroup>           <TrackFileAccess>false</TrackFileAccess>       </PropertyGroup>

    加入后,我的项目文件的代码定义像下面这个样子:

    </ItemGroup>          <PropertyGroup>           <TrackFileAccess>false</TrackFileAccess>       </PropertyGroup>    <PropertyGroup Label="Globals"> 

    转载请注明原文地址: https://ju.6miu.com/read-21004.html

    最新回复(0)