Config Transform Files for changing Web.config for release (ASP.Net 4.0)

26 Jun 2013 .Net, Visual Studio No Comments

You can change parts of the web.config between different builds (e.g. debug and release). I used it to change whether cookies must only be sent and received over ssl. It is also useful for changing connection strings from debug to live versions and also user defined keys (examples below). Clicking the arrow

Continue reading →

Downgrading an MVC4 project from .Net 4.5 to .Net 4.0

25 Jun 2013 .Net, Visual Studio No Comments

I recently created a new project in Visual Studio 2012 and didn't really think much about the .Net version (mistake!). It turns out that the server it is destined for is still MS Server 2003, which will not run .Net 4.5. Oh dear. So I Googled downgrading, and the process of

Continue reading →