CaubleStone Ink

.Net development and other geeky stuff

nAnt: Adding a Visual Studio ItemTemplate for your project build file

Posted on February 13th, 2009


Download nAnt Project Item Template zip file.

If you want to know more about building Visual Studio templates check out MSDN.

Believe it or not this is actually pretty easy. I took the basic project build file from our project build file article and did a File -> Export Template command. Follow the wizard. Afterwards I extracted the zip file put in some of the replace parameters (found on MSDN) and viola! nice little template is now created. Just update the files into the zip file and your done. Just right click add new file and away you go.

If you download the file you want to copy it to the following location:

\\Templates

Just drop it right there in the root. If you put it there then open up visual studio, open a project and add a new item at the bottom of the list you should see the following:

itemtemplate