使用TeamCity部署网站项目 [英] Deploying a Website project with TeamCity

查看:70
本文介绍了使用TeamCity部署网站项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含大量类库项目和IIS网站的解决方案.我正在尝试配置teamcity以通过MSBuild/web deploy编译和部署网站项目.

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

我的问题是,是否有可能实现我的目标?还是只能通过Web应用程序项目来完成?

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

我已经尝试了使用上述参数的MSBUILD和Visual Studio运行器

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

推荐答案

那些MSBuild参数不适用于仅网站的Web应用程序.您仍然可以使用MSDeploy打包网站并进行部署,但必须手动进行.

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/

这篇关于使用TeamCity部署网站项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆