Azure Cloud Service continuous integration with existing ccproj profile

烂漫一生 提交于 2019-12-11 09:49:43

问题


How do I get continuous integration to work using publish settings from a profile in our Cloud Project?

When using the default TfvcContinuousDeploymentTemplate.12.xaml, the publish ignores some of my profile settings. It doesn't use the correct storage account and always publishes to the Staging environment.

Here are the settings for my Development publish profile:

Here is the current state of our build definition:

"Path to Deployment Settings" sounds like it would be correct but it is only for Azure Websites.

How do I get this to publish using all profile settings as specified in my .azurePubxml file?


回答1:


CI template TfvcContinuousDeploymentTemplate.12.xaml will not use your publishing profile. Relevant settings (deployment slot, storage account name, ...) are configured in 6. Deployment > Deployment > Windows Azure Deployment Environment

/p:TargetProfile=Development specifies service configuration only (selects correct .cscfg file), not a publishing profile.

If you need to configure additional features like for example remote debugging, you will have to add additional msbuild parameters in 2. Build > 5. Advanced > MSBuild arguments.



来源:https://stackoverflow.com/questions/29942252/azure-cloud-service-continuous-integration-with-existing-ccproj-profile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!