jscott
jscott

Reputation: 1051

How to change the cscfg file used in Azure deployment from Visual Studio Team Services build?

How do I specify which .cscfg file should be used in an Azure deployment triggered by an automated build in Visual Studio Team Services?

Here's my current situation:

However, I can't see where in the build process I can specify a different .cscfg file name. Is there a way I can specify which .cscfg file to use in the deployment process?

Upvotes: 3

Views: 944

Answers (1)

Poul K. Sørensen
Poul K. Sørensen

Reputation: 17530

You can set the msbuild arguments with the following property:

/p:TargetProfile=TFSBuildProfile

I am doing that in our automated builds for tfs online. Then it uses the ServiceConfiguration.TFSBuildProfile.cscfg when building.

Upvotes: 1

Related Questions