Putting the TEMPLATES to good use?

Putting the TEMPLATES to good use?

Old forum URL: forums.lhotka.net/forums/t/108.aspx


ianinspain posted on Monday, May 15, 2006

I downloaded the code and saw the code snippets and templates... I know where to copy my code snippets to show up...

But i wonder if its possible or anybody managed to copy the templates somewhere so you can do Add New Item in VS 2005 and it shows up in the list under templates or even better in a sub group of there own under templates.??

Is this possible ?? is this what they are meant to do ???

Any ideas?

Thnaks in advance

Ian

Vaxman2 replied on Monday, May 15, 2006

I believe you would:

First open the templates.sln solution

Then do a File->Export Template...

Then select Item Template

Click Next

Click on the files you want to make into templates (I.E. NameValueList.vb)

Click Next

Then select the references you would like (I would do CSLA, System, System,data, and system.xml)

Click Next

Then you can set the template name and description to your liking. You are shown where the files will be exported (usually your Documents and settings\<user>\My Documents\Visual Studio 2005\My Exported Templates\<name of template>.zip.

Then click finish.

You should now be able to add your custom template from the My Templates section of the Add New Item dialog..

The My Exported Templates is a backup location, the export wizard copies this same file to the Documents and settings\<user>\My Documents\Visual Studio 2005\Templates\Item Templates folder for use by Visual Studio. So if you change you mind and want to delete them, you should delete them from both places...

Copyright (c) Marimer LLC