调用vcbuild.exe的错误版本 [英] Wrong version of vcbuild.exe is invoked

查看:703
本文介绍了调用vcbuild.exe的错误版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个版本的Visual Studio安装在我的系统(2005,2008和2010)。
我还有一个Visual Studio 2005(8.0)C ++项目(vcproj)和解决方案(sln)与它相关联。当我运行以下命令

I have several versions of Visual Studio installed on my system (2005, 2008 and 2010). Also I have a Visual Studio 2005 (8.0) C++ project (vcproj) and solution (sln) associated with it. When I run the following command

msbuild helloworld.sln

调用版本4.0的msbuild,然后从Visual Studio 9.0 目录调用vcbuild.exe。这会导致错误

the msbuild of version 4.0 is called and then it invokes vcbuild.exe from Visual Studio 9.0 directory. This leads to an error

vcbuild.exe : error VCBLD0010: Project 'XYZ' requires upgrade. Use'vcbuild /upgrade' or 'devenv /upgrade' to upgrade the project.

在其他系统上,目录和项目成功编译。我不知道为什么在我的系统上vcbuild 9.0调用而不是8.0。有没有人知道如何解决这个问题?

On the other systems MSBuild 4.0 invokes vcbuild.exe from Visual Studio 8 directory and the project successfully compiles. I cannot figure out why on my system the vcbuild 9.0 invokes instead of 8.0. Do anybody have an idea how to troubleshoot this issue?

推荐答案

从命令行运行Visual Studio构建时,在您首次从正确的VS版本运行vcvarsall.bat的命令行中。 Visual Studio安装将这些命令行的快捷方式放入开始菜单。

When running Visual Studio builds from the command line, you should always do that in a command line in which you first ran the vcvarsall.bat from the correct version of VS. Visual Studio installation puts shortcuts to such command lines into the Start menu.

这篇关于调用vcbuild.exe的错误版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆