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…

TFS Replace Tokens

When building a web application you can use AppSettings in you web.config file to configure (not hard-code) settings like database connection strings. Looking at the web.config file, I noticed variables were used like value=”#{CONNECTIONSTRING_RELATIECORRELATIE_DB}#”. The reason variables are used is because we want to change the value of variables per environment (DTAP), but how do…