Monthly Archives: June 2013

Visual Studio 2012 Templates

UPDATE: I added a GitHub repository and included my updates to the MVC4 Empty, Basic and MvcApplication templates. Feel free to contribute. See in the Download chapter.

So you use Visual Studio 2012, NuGet, you create a new project from the standard MVC 4 template and then you update all packages you need, or click on "Update All" and then "downgrade" one (e.g. jQuery 2.x to jQuery 1.x)?

If you need to update everything and downgrade just one package (in example jQuery), you can use the Package Manager Console and issue these 2 commands (first force the uninstallation of jQuery even if it's needed by other libraries, then install the specific version you need):

Uninstall-Package jQuery -Force
Install-Package jQuery -Version 1.10.2

If you want your templates to be always updated, you may want to edit them directly (as usual, do a backup first), so that when you create a new project you won't need to update all the NuGet packages. You may be interested in these 2 locations:
  • Templates folder: C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\\ProjectTemplates\\CSharp\\Web\\1033
  • Packages folder: C:\\Program Files (x86)\\Microsoft ASP.NET\\ASP.NET MVC 4\\Packages

In the Templates folder you can edit the *.vstemplate file and put the package versions you want. For the javascript files, remember also to update the Scripts\\_references.js file. For the references, remember also to update the *.csproj (project) file. Some Libraries require you to update also the web.config file.

In the Packages folder you need to copy the nupkg file and the folder containing the package (take the packages from a new visual studio solution you create).

This seems complicated but once you updated your favorite template, it'll be a piece of cake to maintain it.

Download



To update your existing Visual Studio 2012 templates, just overwrite them with the files you find in my GitHub repository (do a backup of the originals, just in case).

If your favorite template is not here, sorry about that. I update only the templates I use the most for my projects. Feel free to share your updates (at best commit your changes directly in my github repository).

Other interesting resources for Visual Studio 2012


Umbraco upgrade patches for umbraco 6.x to 6.1.3

Update 2013.07.29: added patch for umbraco 6.1.2 to 6.1.3.

If you, like me, like to upgrade umbraco by overwriting only the changed files (instead of the entire umbraco, umbraco_client, bin directories) as recommended in the umbraco general upgrade guide, here a collection of patches (zips containing only the changed files) that may be useful to you.

I created them by checking the differences between the old and new version.

I used Beyond compare, a commercial program that works really well for me. A free alternative can be, e.g. WinMerge

If you installed some packages that may have changed your config files, or even your language files, proceed with caution and check the differences with a comparison tool as I do.

So here the patches. Use them on your own risk! Read the readme.txt in the zip files for more details (such e.g. files that have been removed and you can delete as well).


Check also: Official Umbraco Releases on "Our Umbraco"

At a certain point (or for several releases) the umbraco team was providing the patches, but now not anymore. Thus this page was born.

Hope this helps, enjoy.