Deploying a Website project with TeamCity

北城以北 提交于 2019-12-11 05:22:05

问题


I have a solution that contains a bunch of class library projects and an IIS website. I am trying to configure teamcity to compile and deploy the website project via MSBuild/web deploy.

The projects all build fine but it seems that it is ignoring the command line parameters to push the site to the specified server

my question is, is it possible to achieve what I am looking to do? or can this only be done with a web application project?

/P:Configuration=Release
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://localhost:8172/msdeploy.axd
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=WMSvc
/P:CreatePackageOnPublish=True
/P:UserName=SNIPPED
/P:Password=SNIPPED

I've tried both MSBUILD and Visual Studio runners with the above parameters


回答1:


Those MSBuild arguments won't work for a website only web applications. You can still use MSDeploy to package the website and deploy it but you have to it manually.

Here is a blog post that explains it further.

http://www.dotnetcatch.com/2016/06/23/deploy-an-asp-net-website-not-web-application-with-msdeploy/



来源:https://stackoverflow.com/questions/37888735/deploying-a-website-project-with-teamcity

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