Last Updated: February 25, 2016
·
735
· jincod

Build and deploy asp.net mvc project using WebDeploy

msbuild Web.csproj `
/p:Configuration=Release `
/p:DeployOnBuild=true `
/p:DeployTarget=MsDeployPublish `
/p:CreatePackageOnPublish=true `
/p:MSDeployPublishMethod=WMSVC `
/p:MsDeployServiceUrl="https://localhost:8172/msdeploy.axd" `
/p:DeployIisAppPath="YourSiteName" `
/p:AllowUntrustedCertificate=true `
/p:Username="Username" `
/p:Password="Password"