bzzbb

Hi,

I am trying to build three installation packages (msi's) on our team foundation server (by running devenv) , two of them build OK but the third one fails with the following error: error MSB3073.

Here is the exact message:

D:\Builds\DMT\DMT\BuildType\TFSBuild.proj(238,5): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /log D:\Builds\DMT\DMT\BuildType\..\Sources\DMTClientSetupLogFile.txt "D:\Builds\DMT\DMT\BuildType\..\Sources\DMT.sln" /Build "Release|Any CPU" /Project "DMT Client Setup"" exited with code 1.

I set the devenv \log switch and noticed these 3 errors (shown below) in the log file.

Any ideas on what how to fix this problem

<record>86</record>
<time>2007/08/24 19:35:15.917</time>
<type>Information</type>
<source>Microsoft Visual Studio</source>
<description>Unexpected system error mode before loading package [Windows Forms Designer Resources Package]</description>
<guid>{7B5D447B-0B12-41EA-A84E-C822034422D4}</guid>
</entry>

<record>90</record>
<time>2007/08/24 19:35:19.948</time>
<type>Information</type>
<source>Microsoft Visual Studio</source>
<description>Unexpected system error mode before loading package [StanPackage]</description>
<guid>{72391CE3-743A-4A55-8927-4217541F6517}</guid>
</entry>

<record>94</record>
<time>2007/08/24 19:35:19.995</time>
<type>Information</type>
<source>Microsoft Visual Studio</source>
<description>Unexpected system error mode before loading package [Visual Studio Environment Menu Package]</description>
<guid>{715F10EB-9E99-11D2-BFC2-00C04F990235}</guid>
</entry>

Here is and the section of the BuildLog file where of execute devenv:

Creating SOMService msi file...

"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /log SOMServiceInstallerLogFile.txt "D:\Builds\DMT\DMT\BuildType\..\Sources\SOMServiceApp\SOMService.sln" /Build "Release|Any CPU" /Project "SOMServiceInstaller"

Creating DMT Server msi files...

"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /log DMTServerSetupLogFile.txt "D:\Builds\DMT\DMT\BuildType\..\Sources\DMT.sln" /Build "Release|Any CPU" /Project "DMT Server Setup"

Creating DMT Client msi file...

"C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /log DMTClientSetupLogFile.txt "D:\Builds\DMT\DMT\BuildType\..\Sources\DMT.sln" /Build "Release|Any CPU" /Project "DMT Client Setup"

D:\Builds\DMT\DMT\BuildType\TFSBuild.proj(238,5): error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /log D:\Builds\DMT\DMT\BuildType\..\Sources\DMTClientSetupLogFile.txt "D:\Builds\DMT\DMT\BuildType\..\Sources\DMT.sln" /Build "Release|Any CPU" /Project "DMT Client Setup"" exited with code 1.

Any ideas on how to fix this

Thanks for your help,

Bruce



Re: Team Foundation Server - Build Automation Package Load failure running devenv on TFS (I am using devenv to build a .vdproj file)

bzzbb

Maybe the package load errors are a smoke screen for the real problem.

Is there some way I can get the output from devenv written to a log file, the devenv /log option only shows me the package load log.

Thanks





Re: Team Foundation Server - Build Automation Package Load failure running devenv on TFS (I am using devenv to build a .vdproj file)

Hua Chen - MSFT

Hello Bruce,

From your post your problem is that you cannot invoke devenv.exe to build one of three installation packages.

Could you please check the TFSBuild.Proj file to see if there is an syntax problem

  1. Compare the texts which build the second package (good build) and the third package (Bad build).
  2. Try to find other difference besides the package difference.
  3. Please pay attention to the &quot, Spaces etc.


There is a known issue that MSBuild will give a 3073 error when the Exec task has incorrect syntax.

Good luck.






Re: Team Foundation Server - Build Automation Package Load failure running devenv on TFS (I am using devenv to build a .vdproj file)

bzzbb

Thanks for your response Hua Chen.

Upon futher investigation I realized I should use devenv.com NOT devcom.exe to build the vdproj, Devenv.com outputs error the progress and messages to the buildlog.txt file (devenv.exe does not output anything!) After I made that change I was able to see the error messages and realized the error was a legiment failure of devenv, one of the projects was referencing a debug version of an assembly.

I fixed the reference and the project now builds OK.

Thanks,

Bruce