PDA

View Full Version : Error MSB3428 could not load VCBuild (which MSBuild invokes) - VS 2005


aciereszko
12-07-2016, 12:15 PM
Hi,

Here is the error

B:\SVN\Test\Test.vcproj : warning MSB4098: MSBuild is invoking VCBuild to build this project. Project-to-project references between VC++ projects (.VCPROJ) and C#/VB/VJ# projects (.CSPROJ, .VBPROJ, .VJSPROJ) are not supported by the command-line build systems when building stand-alone VC++ projects. Projects that contain such project-to-project references will fail to build. Please build the solution file containing this project instead.
B:\SVN\Test\Test.vcproj : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere.

I have VBP 9.2, running on Windows 7 Pro, with VS 2005, 2010 and 2015 installed (in that order)

So it would seem that point 2) in the error is satisfied. The project builds in VS2005 fine.

Any idea what this could indicate and how would I go about fixing it?

Thanks!

kinook
12-07-2016, 07:27 PM
http://www.kinook.com/Forum/showthread.php?t=4500

aciereszko
12-08-2016, 09:01 AM
Thanks!

So this means that if my build script builds projects from VS 2005, 2010, and 2015, I need to run the vcvars script as a build step before each one vs build step (if the projects alternate versions of VS?)

kinook
12-08-2016, 09:19 AM
Not in a separate build step -- in the Command to run before main command field on the Advanced tab of the Make VS* step.

You can also search the forum for 'vcbuild' to see some other discussions on workarounds for issues related to it. IIRC, one was to use devenv instead of msbuild when vcbuild is involved in building.