Build fails with TRACKER (,): errorTRK0002: Failed to execute command

| No Comments | No TrackBacks

Our build server is running Visual Studio 2010, and CruiseControl.Net. One evening, after what we expect was a Windows Update, our build started to fail with the following error;

 TRACKER (,): errorTRK0002: Failed to execute command: ""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ResGen.exe" /useSourcePath /r:<loads of project paths> /compile Properties\Resources.resx,obj\Debug\Project.Properties.Resources.resources". The handle is invalid.

When executing ResGen locally in the correct project path, it turned out that the resource file specified did not exist. Question was still, why was it doing this.

One of the guys on the team suggested to delete the Resources.resx file from the projects that were not using them. So trying that, things started to compile like before.

So, it seems like including a Resources.resx in a project, causes MSBuild (2010 version) to try generating resources for the project, but if the Resources.resx is empty (project contains no resources) the required file for ResGen.exe to work is not created, and a following build step fails.

No TrackBacks

TrackBack URL: http://www.vc2go.com/cgi-sys/cgiwrap/webprog/managed-mt/mt-tb.cgi/6

Leave a comment

About this Entry

This page contains a single entry by Thies Schrader published on May 7, 2010 10:25 AM.

errorMSB6006: "ResGen.exe" exited with code -1073741701. was the previous entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.21-en