msdeploy

WebDeploy with MSBuild Not Deploying from TeamCity

社会主义新天地 提交于 2019-12-20 21:52:40
问题 I am trying to use MSDeploy to deploy an MVC project to the server using TeamCity. When I do this on my computer in powershell, using the following command: msbuild.exe .\mvc.csproj /p:PublishProfile=DevServer /p:VisualStudioVersion=11.0 /p:DeployOnBuild=True /p:Password=MyPassword /p:AllowUntrustedCertificate=true It builds the project and deploys it to the server (info defined in the DevServer publish profile) perfectly. The output shows an MSDeployPublish section at the end, in which I see

WebDeploy with MSBuild Not Deploying from TeamCity

僤鯓⒐⒋嵵緔 提交于 2019-12-20 21:52:32
问题 I am trying to use MSDeploy to deploy an MVC project to the server using TeamCity. When I do this on my computer in powershell, using the following command: msbuild.exe .\mvc.csproj /p:PublishProfile=DevServer /p:VisualStudioVersion=11.0 /p:DeployOnBuild=True /p:Password=MyPassword /p:AllowUntrustedCertificate=true It builds the project and deploys it to the server (info defined in the DevServer publish profile) perfectly. The output shows an MSDeployPublish section at the end, in which I see

Full list of /P MSDeploy arguments for MSBuild from TeamCity

梦想与她 提交于 2019-12-20 17:04:33
问题 I currently use the MSBuild runner in TeamCity for continuous integration on my local server and this works very well. However, I'm having trouble finding a full list of supported command line switches for MSDeploy in the format that TeamCity expects them. In my 'Parameters' section at the moment I using the following switches: /P:Configuration=OnCommit /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://CIServer:8172/MsDeploy.axd /P:AllowUntrustedCertificate

Full list of /P MSDeploy arguments for MSBuild from TeamCity

浪子不回头ぞ 提交于 2019-12-20 17:03:38
问题 I currently use the MSBuild runner in TeamCity for continuous integration on my local server and this works very well. However, I'm having trouble finding a full list of supported command line switches for MSDeploy in the format that TeamCity expects them. In my 'Parameters' section at the moment I using the following switches: /P:Configuration=OnCommit /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://CIServer:8172/MsDeploy.axd /P:AllowUntrustedCertificate

How do I deploy using MSDeploy in Team Build 2010 using the WMSVC service and NTLM authentication?

北慕城南 提交于 2019-12-20 08:48:48
问题 I am trying to deploy using Team Build 2010 to a Windows Server 2008 R2 web server. My build server agent is setup to run under a Windows domain account. I have successfully given this domain account permissions on my web server for the deployment using the IIS Manager permissions. This account is not an Administrator on the web server. I can get the build deploying just fine using the following parameters: /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=False

Breaking MsBuild package & deploy into separate MsBuild and MsDeploy commands

心不动则不痛 提交于 2019-12-20 08:46:53
问题 I'm having a few problems breaking out an MsBuild package+deploy command into two separate commands. (I need to do this to pass additional parameters to MsDeploy). The command that works fine looks like this: msbuild "src\Solution.sln" /P:Configuration=Deploy-Staging /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://192.168.0.1:8172/MsDeploy.axd /P:DeployIISAppPath=staging.website.com /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WmSvc /P

What Parameters do I need to pass to the PackageWeb powershell script to make it deploy to my remote machine

好久不见. 提交于 2019-12-20 04:49:50
问题 still, I am fiddling around within the MSBuild-/MSDeploy-world and have been scratching my head far too often lately. I want to be able to build a Web Application Project only once and deploy it to multiple configurations . I found this PackageWeb-Solution from Sayed I. Hashimi which enables you to add a Nuget-Package to your WAP that will add additional files to a generated WebDeploy-Package. (You can actually take a look at this 5-Minute-Video to get the basics of what this post is about.)

How to set MSDeploy settings in .csproj file

倾然丶 夕夏残阳落幕 提交于 2019-12-19 05:13:16
问题 Is there a way to set MSDeploy parameters in .csproj file itself of ASP.NET MVC project? Particularly a "skip" parameter, which should skip a "Temp" folder. -skip:objectName=dirPath,absolutePath="\\temp" .. or how can I pass this parameter into MSBuild.exe arguments list? 回答1: Define <MsDeploySkipRules> in the project file. For example: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <OnBeforePackageUsingManifest>AddSkipRules</OnBeforePackageUsingManifest

MSDeploy batch file does not handle quotes anymore

给你一囗甜甜゛ 提交于 2019-12-18 12:16:17
问题 As part of our build process we deploy our web applications using MSDeploy. This worked perfect until a few weeks ago (I think when we updated our build/TFS server to SP1 of TFS 2010). In our build definition there is a step to invoke a process. This process will call the generated deploy.cmd file and passes in a couple of additional parameters. This worked fine for a long time, but now we get this: Error: Unrecognized argument '"-skip:objectName=filePath,absolutePath=.*cmsservices.config"'.

How do I deploy using MSDeploy and TeamCity with Integrated Windows Authentication?

戏子无情 提交于 2019-12-18 11:49:25
问题 I had a MSDeploy deployment working beautifully with TeamCity when I passed in the user credentials. The command line parameters (using env. variables for some values) were: MSBuild.exe Web.csproj /P:Configuration=%env.Configuration% /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://%env.TargetServer%/MsDeploy.axd /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=WMsvc /P:CreatePackageOnPublish=True /P:UserName=%env.AdminUser% /P:Password=%env