Reputation: 6006
I am planning to automate my old IIS application with VSTS, but i could find an appropriate msbuild command that actually deploys to the IIS server. I tried the solution here. But all in vain, it builds properly but the assembly is not published to IIS web folder. Is there any task that is specifically build for iis deploy. I have multiple CI/CD pipeline which uses MSBuild tasks, which publishes the assembly using publish profile, those works like a charm.
Upvotes: 0
Views: 264
Reputation: 2883
Did you already tried IIS Web App Deployment Using WinRM? We're using this VSTS Extension since a few month and it's working flawlessly.
Overview taken from the Visual Studio Marketplace:
Update
Checkout the brand new documentation Deploy to IIS web server on Windows here
Upvotes: 1
Reputation: 33698
Using IIS Web App Deployment Using WinRM tasks (Chris said). Sample tasks:
/p:SkipInvalidConfigurations=true /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageLocation="$(build.artifactstagingdirectory)\web.zip"
)$(Build.ArtifactStagingDirectory)\web.zip
)You can publish deployed files to server through Publish build Artifacts task, then link build to release and deploy web package to IIS in release (move step 3 to release)
Upvotes: 1