Solve: “Could not load VCBuild.exe” on a CI (build server)

When I came across the following error, I needed to search a bit before I found the solution. I hope this will help someone facing the same issue.

The error I faced was:

error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008

The following blog post of Jeremy Jameson actually gave me a clue on how to solve this.

You do not want to install visual studio on your build server. Keep it as clean as possible to prevent the “It only works on my machine”-issues. Installing the windows SDK isn’t ideal either but acceptable.

After installing the right components, the next step is to include VcBuild in the path. You can configure it in your CI but I think changing the global path environment variable is more acceptable. To set the global path variable: right click My Computer, choose Properties. In Windows 7 click on Advanced system settings.

image In this new window click on Environment Variables.

image

In the Environment Variables dialog choose Path under System variables. Click on Edit.

image Add the following path for x86 systems (It might look differently for x64 systems):

;C:\Program Files\Microsoft Visual Studio 9.0\VC\vcpackages

image Make sure the path is seperated from the previous path with a semicolon (;). And yes even when you install the windows sdk, VcBuild.exe is located in the Microsoft visual studio folder instead of a windows sdk something.

Press Ok, Ok, Ok and Close :) all windows should be gone now.

One last catch with : restart it to have the new path availlable during the build steps.

Tags: , , , , ,

Comments

instant loans
instant loans United States
2/4/2010 7:19:52 PM Permalink

If you want to achieve excellence, you can get there today. As of this second, quit doing less-than-excellent work.

life
life United States
2/13/2010 11:37:47 AM Permalink

Success is the maximum utilisation of the ability that you have.

usa payday loans
usa payday loans United States
2/14/2010 2:03:21 PM Permalink

For success, attitude is equally as important as ability.

make a memory foam bed
make a memory foam bed United States
2/23/2010 4:31:54 AM Permalink

Hey everyone. Interesting idea for a blog. I was just surfing the Internet for fun when I found your website. Great post. Thanks a ton for sharing your knowledge! It is encourging to know that some people still put in an effort into handling their websites. I'll be sure to look in from time to time.

Force Factor
Force Factor United States
2/24/2010 10:29:57 PM Permalink

I'm now using XP. I have wished to avoid using vista given it is really a resource hog. I've noticed good things regarding windows 7. I suppose I am going to have to give this a go.

Hi, Good content throughout the site. This page iswhere I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading