Creating a template
- I have a huge solution with many different projects but whenever I have a new piece of work, I always need to create a folder with 4 class libraries to my solution.
Is there anyway to create a template that dev's can just select and it creates these 4 class libraries with some basic files etc?
Answers
- An even easier solution is to create the solution with the 4 class libraries. Then use File\Export Template to auto-generate a template for the solution.
Michael Taylor - 11/4/09
http://p3net.mvps.org- Marked As Answer byHarry ZhuMSFT, ModeratorWednesday, November 11, 2009 2:08 AM
- Proposed As Answer byTaylorMichaelLMVP, ModeratorTuesday, November 10, 2009 2:45 PM
- Unmarked As Answer byTheLearner Wednesday, November 11, 2009 2:35 PM
- Unproposed As Answer byTheLearner Wednesday, November 11, 2009 2:35 PM
- Marked As Answer byTheLearner Wednesday, November 11, 2009 2:56 PM
All Replies
- Unproposed As Answer byTheLearner Wednesday, November 11, 2009 2:36 PM
- Marked As Answer byHarry ZhuMSFT, ModeratorWednesday, November 11, 2009 2:08 AM
- Unmarked As Answer byTheLearner Wednesday, November 11, 2009 2:36 PM
- Proposed As Answer byTaylorMichaelLMVP, ModeratorTuesday, November 10, 2009 2:45 PM
- An even easier solution is to create the solution with the 4 class libraries. Then use File\Export Template to auto-generate a template for the solution.
Michael Taylor - 11/4/09
http://p3net.mvps.org- Marked As Answer byHarry ZhuMSFT, ModeratorWednesday, November 11, 2009 2:08 AM
- Proposed As Answer byTaylorMichaelLMVP, ModeratorTuesday, November 10, 2009 2:45 PM
- Unmarked As Answer byTheLearner Wednesday, November 11, 2009 2:35 PM
- Unproposed As Answer byTheLearner Wednesday, November 11, 2009 2:35 PM
- Marked As Answer byTheLearner Wednesday, November 11, 2009 2:56 PM
- Hi there, I don't see any EXPORT option in visual studio's file menu. I am using VS2008. Can you advise?
- What edition are you running? It should show up as File\Export Template... but it is disabled for some project types. Alternatively you can create a button or map a keystroke to the File.ExportTemplate command.
Michael Taylor - 11/11/09
http://p3net.mvps.org - VS 2009 Professional. I saw on a colleague, he has Dev Edition and it has the option.
- I'm vaguely remembering that Pro didn't have this feature but I can't find anything that says that. Check to see if you have the File.ExportTemplate command. If you do then you can bind it to a button. If not then either use your buddy's machine or follow Thomas's post. Given it is a one-time thing then your buddy might be the fastest option.
Michael Taylor - 11/11/09
http://p3net.mvps.org - I found it, it wasn't on the file menu but the command exists. How silly that they don't show some of the functionality to the user.


