Home > Team Build, TFS, TFS2010 > TFS 2010: MSBUILD : error MSB1008: Only one project can be specified

TFS 2010: MSBUILD : error MSB1008: Only one project can be specified


You may get the following error during the team build

MSBUILD : error MSB1008: Only one project can be specified. Switch: CPU /p:VCBuildOverride=C:\Builds\1\Lajak\SilverlightApplication3\Sources\SilverlightApplication3.sln.Any For switch syntax, type “MSBuild /help”

TF270015: ‘MSBuild.exe’ returned an unexpected exit code. Expected ‘0’; actual ‘1’.

Solution

Make sure that none of the MSBuild switches contain a space and switches are surrounded with double quotes. If any of the switches contain a path that contains a space, make sure that it ends with double backward slashes. You can also remove the backward slashes at the end.

Example:

/p:referencepath=”$(SourceDirectory)\Referenced Assemblies\lib\\”

Advertisements
Categories: Team Build, TFS, TFS2010 Tags: , ,
  1. July 22, 2016 at 2:47 am

    Thank you! I’ve just solved the same problem with msbuild.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: