Close

TFS Deploy Web App

Another post on using TFS (or DevOps) for easy reference. To build a web application and deploy it locally on IIS, you can use the following build and release definitions:

In the Visual Studio Build step, use the following MSBuild Arguments to build a web deploy package:
/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation=”$(build.artifactstagingdirectory)\”

It’s this web deploy package, you copy to the build artifacts staging directory.

And the release definition looks like this:

An explanation of the Replace Tokens step can be found in the following post: Go To!