无法设置msbuild.exe Visual Studio 2010的路径
Unable to set path of msbuild.exe Visual Studio 2010
我最近开始使用Visual Studio 2010。我有以下问题:我的项目无法构建。我得到这个错误:
C:...visual studio 2010ProjectsString2String2String2.vcxproj : error MSB4014: The build stopped unexpectedly because of an internal failure.
C:...visual studio 2010ProjectsString2String2String2.vcxproj : error MSB4014: Microsoft.Build.Exceptions.BuildAbortedException: Build was canceled. MSBuild.exe could not be launched as a child node as it could not be found at the location "C:WINDOWSMicrosoft.NETFrameworkv4.0.30319msbuild.exe". If necessary, specify the correct location in the BuildParameters, or with the MSBUILD_EXE_PATH environment variable.
我检查了有问题的目录,在那里确实可以找到MSbuild.exe。环境变量MSBUILD_EXE_path中的路径设置为正确的路径。尽管如此,该项目仍无法构建。有时我可以将环境变量更改为在末尾包含"/msbuild.exe",这将起作用。有时不会。每次重新启动计算机时,问题都会再次出现。
按照这个答案中所写的激活诊断并查看它报告的内容。我的经验是,有时报告的错误与真正的原因相去甚远,比如一些文件由于被锁定而无法创建,或者目录丢失,但它说明了一些msbuild问题。第一道防线是删除输出文件夹和中间文件夹。
我已经解决了这个问题。问题是编译器干扰了防病毒软件(Avast)。如果我打开的防病毒软件,编译器就会工作。这显然带来了一个新问题——在使用编译器时,如何保持防病毒?
相关文章:
- 无法在 Visual Studio 2010 中构建 Allegro C++ 程序
- Visual Studio 2013,错误 MSB8020:找不到 Visual Studio 2010 的生成工具
- std::array initalization with Visual Studio 2010
- 将代码从 32 位迁移到 64 位时出现问题 Visual Studio 2010
- 在 Visual Studio 2010(及更高版本)中定义包含或链接路径变量的位置
- Visual Studio 2010 单元测试:无法识别引用的项目类
- Visual Studio 2010 - C++ 致命错误 LNK1120: 1 个未解析的外部
- C /FORTRAN项目由Visual Studio 2010/Intel 2013创建,将不会在Visual St
- 如何使 Visual Studio 2010 警告未使用的变量
- 如何解决错误 C2719 在 Visual Studio 2010 C++ 中不存在代码行时
- 按值传递的参数在 Visual Studio 2010, C++ 的调试器中显示为通过引用传递
- Visual Studio 2010 是否执行零初始化
- 无法使用 Visual Studio 2010 和 Qt 版本 4.8.0 创建"Qt Gui Application"
- 如何将Visual studio 2010升级到2015版本
- Visual Studio 2010 调用 _locking() 失败 (errno = 22) 当文件指针高于 (2^
- Qt 4.8 与 Visual Studio 2010 的链接错误
- OpenSSL on Windows and Visual Studio 2010
- 在Visual Studio 2010中使用大型查找表的链接限制使用代码库的限制
- Visual Studio 2010:致命错误C1189:#Error
- 未解决的外部符号Visual Studio 2010错误