Rekha Shinde

Hi there,

I am trying to build a setup project (.vdproj) using team build. I am aware that msbuild does not support building setup projects and one has to add custom task to build setup projects separately using devenv.

I have added a custom task in TFSBuild.proj file to build the setup project. However, it fails to build it and gives an error. The command I have added is:

>D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv" $(SolutionRoot)\Setup\Setup.vdproj /Build "Release"

The error it shows is something like this:

ERROR: Invalid or unspecified target for shortcut <shortcutname>,

ERROR: Cannot find outputs of project output group '(unable to determine name)'. Either the group, its configuration, or its project may have been removed from the solution.

When I run the command from command prompt, it gives the same error.

The setup project builds without any error when I build it from VS2005 IDE.

Am I missing something here

thanks,

-Rekha




Re: Team Foundation Server - Build Automation Pre-build validation failes for setup project

Buck Hodges

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

Buck






Re: Team Foundation Server - Build Automation Pre-build validation failes for setup project

Rekha Shinde

Thanks..

I had followed all the steps mentioned in the document.

Ultimately, the problem was that I was not specifying name of the solution file.

I had 2 solutions in the same project, which were created in VS2003. After I switched to VS2005, I converted one of the solution to VS2005 format. The other solution was still VS2003 compatible.

After I specified the name of the solution file in the command, the error went away.

-Rekha






Re: Team Foundation Server - Build Automation Pre-build validation failes for setup project

Ajay Jandhyala

I am not able to get it to work. I have just one solution and the command line works on my machine. However, the TFS build and the command line on the build box give me the same error that Rekha recieved. This is a web set up project and I am not able to get this to build using team build. Any suggestions

Here is the error log

ERROR: Cannot find outputs of project output group '(unable to determine name)'. Either the group,
its configuration, or its project may have been removed from the solution.

My command (my system path has devenv.exe and I am in the location of the VDPROJ):

devenv ServiceShipWebSetup.vdproj /Build "Release|Any CPU"

This command works on my machine. However, on the build machine it fails. Here is my build snippet:






Re: Team Foundation Server - Build Automation Pre-build validation failes for setup project

Ben Salins

Rekha,

can u just copy-paste ur code in this forum, i have a similar error, but cannot resolve it.

your answer mentioned of adding the solution file name as well. could you expalin it further please.

Regards,

Ben Salins