Problem building Setup Projects with Team Build

Hi,

We're experiencing problems while building setup projects from team build. We have VS installed on a build machine and use a custom build step calling devenv for building the setup project.

It works so far that we get our desired msi package. But the problem is that before the setup project is build, all other projects in the solution are build as well regardless of the fact that team build did this right before!

I checked the vdproj file and it contains the right paths (yes, all are relative paths to obj/Release folders). Devenv seems to be unable to detect that all projects are up-to-date.

However, when I launch devenv with exactly the same command line on my desktop, the setup project is correctly build without rebuilding all other projects before.

The same happens when we're using mobile device setup projects (which create CAB files).

Any help is greatly appreciated!

Best regards,

Dirk Junghanns

[2534 byte] By [dirkj] at [2007-12-22]
# 1

Here is a walkthrough for building deployment projects with Team Build: http://msdn2.microsoft.com/en-us/library/ms404859.aspx.

Buck

BuckHodges at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 2

Hi Buck,

we do exactly like in the walkthrough with one exception. The devenv is started from a command line script and this script is launched by the Exec Command action.

The building of msi works, but it recompiles everything when doing the msi project!

Dirk.

DirkJunghanns at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 3

Hi,

we have also problems with our Team Build. I added the following lines at the end of TFSBuild.proj file:

<Target Name="AfterCompile">

<Exec Command="&quot;C:\Programme\Microsoft Visual Studio 8\Common7\IDE\devenv&quot;

&quot;$(SolutionRoot)\ClientSideSolution\ClientSideComponents\DotNetSetup\DotNetSetup\DotNetSetup.vdproj /Build &quot;Release|Any CPU&quot;"/>

<Copy SourceFiles="$(SolutionRoot)\ClientSideSolution\ClientSideComponents\Release\DotNetSetup.msi" DestinationFolder="$(OutDir)"/>

</Target>

The Team Build does all the compiles, but when it comes to the last project, it seems to hang.

When I remove the lines everything works fine. Team Build doesn’t give us any error message. My Setup Project is part of the Solution which is included in Team Build and there is only one solution included in this Team Build.

Regards

DDressel

DDressel1 at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 4

Have you tried running this same command directly from the command line? Do you get the same behavior there?

-Aaron

AaronHallberg at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 5

Hi,

I am experiening a similar problem while building the setup project from team build. It builds all other projects in the solution even if team build built it earlier.

When I run the same command from command line, it shows the same behavior.

-Rekha

RekhaShinde at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...
# 6

I tried on command prompt:

C:\Dokumente und Einstellungen\ddresselts>"C:\Programme\Microsoft Visual Studio
8\Common7\IDE\devenv.exe" "c:\Dokumente und Einstellungen\ddresselts\Eigene Date
ien\SC\ClientSideSolution\ClientSideComponents\DotNetSetup\DotNetSetup\DotNetSet
up.vdproj" /Build "Debug"

No error message and nothing seem to happen...

DDressel

DDressel1 at 2007-8-30 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...

Visual Studio Team System

Site Classified