由于VS2013 社区版本需要Signin, 当出现Signin过期时候,重安装VS2013或其他版本的VS开发工具
可能出现上述错误,错误内容可能如下
可能出现上述错误,错误内容可能如下
Error 1 error : The source file for this compilation can be found at: "C:\Users\{winloginuser}\AppData\Local\Temp\{templatefile.txt}"
Error 2 error MSB3758: An error has occurred during compilation.
Error 3 error MSB4036: The "SetEnvironmentVariable" task was not found.
该问题出现时候,GOOGLE错误解决方案,好几种办法尝试尚没有解决该问题,
1》 重安装Framework (问题还是存在)
2》删除Microsoft.CodeAnalysis.targets文件中SetCABuildNativeEnvironmentVariables属性对象(引入其他错误)
修改方案:
AS-IS
<Target Name="SetCABuildNativeEnvironmentVariables">
<SetEnvironmentVariable Condition="'$(Language)'=='C++' and '$(CAExcludePath)' != ''" EnvValue="$(CAExcludePath)" EnvKey="CAExcludePath" />
</Target>
<Target Name="SetCABuildNativeEnvironmentVariables">
<SetEnvironmentVariable Condition="'$(Language)'=='C++' and '$(CAExcludePath)' != ''" EnvValue="$(CAExcludePath)" EnvKey="CAExcludePath" />
</Target>
TO-IS
<Target Name="SetCABuildNativeEnvironmentVariables">
</Target>
这样就结局了VS出现的上述错误
本文介绍了解决VS2013社区版因签到过期导致的错误1、错误2和错误3的问题。通过修改特定的XML配置文件,成功解决了编译错误、环境变量设置失败等问题。
2367





