Memi.Reflection

Private members of memi's thoughts

VS.NET Templates

One of the nice features of the VS.NET is the possibility to add new templates to the project items. This feature is extremely handy when one creates a unique template, which should be used across all the application in the company.

Our web framework, for instance, uses special pages types, and divided roughly to 3 types of pages: Base Page, Search Page and Update Page. Therefore, it was very useful to add the appropriate template to the VS.NET. This way, when a developer wants to add new web form, he can choose the most appropriate template to start work from, and he does not need to cut and paste the regular code of the WebForm template.

That been said, there is a problem with this process. It is very cumbersome and error prone, and involves modifying vsdir and vsz files, as well as messing with scripts no one understand, not to mention debug.

Am I the only one to feel this way? Did you also fell into the “Template Trap“? I think of creating a small Add-In which will automate this process, and help placing all the files in their right place. Do you think this tool would be useful for you?

Drop me a line!

Comments

Roy Osherove said:

Yep. Templates rule and suck at the same time ;-)
I'd love to see such an add-in.
# February 23, 2004 4:49 AM

Yura2000 said:

Sure.
I did it once - not the best thing for the spare time :-)
I'd like to get such AddIn.
# February 23, 2004 6:17 AM

Travis Laborde said:

Count me in. I've tried - and failed - to get it working. An AddIn like that would be worth $ to me :)
# February 23, 2004 7:36 AM

Eddie Garmon said:

Creating the templates themselves it very easy. I have made available several base templates here: http://eddie.synapticpop.com/category/3.aspx

But, the real value comes from knowing javascript, and reading and fully understanding the core scripts supplied in the VS.Net environment. That is very hard to automate.
# February 23, 2004 10:27 AM

TrackBack said:

# May 17, 2004 7:56 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)