Browsed by
Tag: Web deploy

Enable web deploy on IIS 8 running on 2012 R2

Enable web deploy on IIS 8 running on 2012 R2

Web deploy enables a developer (or anyone with sufficient privileges) to build and deploy a website using visual studio or via the command line using MSBuild. An example of such a build command can be found in my previous posts. We use it mainly in our continuous integration environment to automatically build, test and deploy new code if a new commit to the git master branch was detected. Installation via web platform installer First you will need administrator rights to…

Read More Read More

How to deploy a web site project using msbuild

How to deploy a web site project using msbuild

A website project differs a bit from a normal web application. The main thing is that it doesn’t require compilation, so how do I deploy this then? A “normal” msbuild deploy will look like this: cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 MSBuild “C:\STAGING\website\\.sln” /p:DeployOnBuild=true /p:PublishProfile=ToProduction /p:WebPublishTargetsVersion=11.0 /p:username= /p:password= If you try to use this on a web site project (provided you created a solution file for it), you will get following error: The precompilation target directory cannot be in the same tree as the…

Read More Read More