Ask a questionAsk a question
 

AnswerCreating a template

  • Wednesday, November 04, 2009 4:07 PMTheLearner Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Wednesday, November 04, 2009 6:00 PMTaylorMichaelLMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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

All Replies

  • Wednesday, November 04, 2009 4:59 PMthomas_woelfer Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    yes.

    WM_HOPETHISHELPS
    -thomas woelfer
    http://www.die.de/blog
  • Wednesday, November 04, 2009 6:00 PMTaylorMichaelLMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
  • Wednesday, November 11, 2009 2:35 PMTheLearner Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi there, I don't see any EXPORT option in visual studio's file menu.  I am using VS2008.  Can you advise?
  • Wednesday, November 11, 2009 2:39 PMTaylorMichaelLMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Wednesday, November 11, 2009 2:44 PMTheLearner Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    VS 2009 Professional.  I saw on a colleague, he has Dev Edition and it has the option.
  • Wednesday, November 11, 2009 2:52 PMTaylorMichaelLMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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
  • Wednesday, November 11, 2009 2:55 PMTheLearner Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.