WebDeploy/MSDeploy Quick Tip: Keep existing files during deployment

By default WebDeploy/MSDeploy will clear the target before deploying the new files.  In most cases this is preferred it will help to avoid “works on my machine” issues and generally to keep all your environments more similiar.  You can instruct WebDeploy to not delete existing files on the server from MSBuild using the following MSBuild …

WebDeploy/MSDeploy Quick Tip: Keep existing files during deployment Read More »

WebDeploy Parameterization Tip: Disable automatic ConnectionString parameterization

By default WebDeploy parameterizes all the ConnectionStrings in the web.config for a project.  This always confuses developers when they are first converting over to parameterization from config transforms. You can open the resulting MSDeploy package zip file and the parameters.xml file to find parameter entries for each of your connections string with the name: [connection …

WebDeploy Parameterization Tip: Disable automatic ConnectionString parameterization Read More »

WebDeploy Parameterization Tip: Rewrite it!

From time to time a developer will ask for help with Parameterization where they just can’t seem to get it working for some specific scenario.  Often this is just an XPath bug or fat finger issue.  In two seperate instances now simply deleting the existing parameter node in the parameters.xml and recreating it solves the …

WebDeploy Parameterization Tip: Rewrite it! Read More »

Workaround – SlowCheetah Bug #124 (Multiple XML transformed in Setup Project)

We had the issue described here at work last week with SlowCheetah and multiple transformed XML files to be deployed via a Setup Project.  After digging through the SlowCheetah and Microsoft MSBuild scripts I still haven’t found the SlowCheetah fix yet but will keep trying. In the meantime, I did find a workaround. Workaround Steps …

Workaround – SlowCheetah Bug #124 (Multiple XML transformed in Setup Project) Read More »

ParameterizationPreview Visual Studio Extension

We decided to make the jump to MSDeploy/WebDeploy Parameterization for changing our configuration files in lieu of Config Transformation a few weeks ago.  This was a tough decision as I had grown fond of and evangelized Config Transforms for so long.  Config Transforms served us well for several years but at the end of the …

ParameterizationPreview Visual Studio Extension Read More »

Don’t use HostingEnvironment.ApplicationHost.GetSiteName()

We have developed a diagnostics framework we use to get some quick diagnostic information about our applications like whether a database or web service can be made.  It’s a server/app configuration smoke test of sorts.  Over time we’ve added further capabilities to it like checking registry entries exist, file/folder permissions and web/machine.config values.  Our latest …

Don’t use HostingEnvironment.ApplicationHost.GetSiteName() Read More »