oscarmorasu
oscarmorasu

Reputation: 901

TFS 2013 publish multiple projects to local folders

I'm using TFS2013 to build and publish a single Web project to a local folder on the build machine. As specified here I just add the parameters below as msbuild parameters and it works, including the Web.config transforms.

/p:DeployOnBuild=true;DeployTarget=PipelinePreDeployCopyAllFilesToOneFolder;PackageTempRootDir="\\sharedfolder";AutoParameterizationWebConfigConnectionStrings=false

Now I'm dealing with a solution containing multiple Web projects. I'd like to end up with multiple local folders, one per Web project. The solution above doesn't seem to work (only generates one of the projects). I also checked the _PublishedWebsites in the drop folder but those files don't have the transforms applied.

Is there a way to do this?

Upvotes: 1

Views: 1471

Answers (1)

suresh2
suresh2

Reputation: 1169

you can achieve this by setting up publish profile for each project. Add publish profile for each Project with same name. you can use File system Publish Method to Publish the output to different directories for each project.

Just call the Publish profile in the Ms-build Argument.

/p:DeployOnBuild=true;PublishProfile=yourProfileName

Follow this link for more details http://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx use File System instead of Web Deploy.

Upvotes: 2

Related Questions