Reputation: 437
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
Upvotes: 2
Views: 2755
Reputation: 14373
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/
Upvotes: 3