Add the same Projects often? You'll want this extension...

So there you are, spinning up new project. You've got a bunch of Projects that work better for you to include in the Solution (as apposed to a private NuGet/binary repo). So you hunt them down, adding them one after the other.

A couple days pass, and you're spinning up another new project and you start playing the Add Project game once again... There's got to be something that makes easier!

Richard J Moss had the same issue and decided to do something about it...

Cyotek Add Projects

Background

My solutions have lots of references to other projects, either common libraries or unit testing libraries. Neither of these scenarios lend well to manual binary references or NuGet packages, so I have lots of source code projects loaded for each solution.

When creating a new solution (or retro fitting an existing solution to use new libraries), I end up using File | Add | Existing project a lot. As I was curious about how extensions in Visual Studio worked, I decided to write a very simple one to ease the grunt work of adding multiple common projects.

This simple extension is the result. I'm afriad it doesn't use WPF, so it's a touch ugly but it gets the job done. I've been using it for almost a year now before finally uploading it here on the gallery - hopefully others will find it as useful as I have.

image

To use the extension, open the Tools menu and choose Add Projects. This will open a lovely unthemed Windows Forms dialog containing an empty list of projects.

Adding a single project to the MRU

To add a single project to the list, click the Add File button then select the project you want to include.

Note: Currently changes won't be saved unless you also add something to you project. So if you add a bunch of stuff, then hit cancel... oops. I'll fix this at some point!

Adding multiple projects to the MRU

To add multiple projects to the list, click the Add Folder button, then select a folder. After you've selected a folder, all projects in this folder and its subfolders will be added to the list.

Removing projects from the MRU

You can remove projects from the list, just select them and press the Delete key or the Remove button.

Adding projects to your solution

image

...

Closing

That's pretty much it - it's a very simple extension, but potentially a starting point for something more interesting.

And of course the source is available too, cyotek/Cyotek.AddProjects

For more information and details, check out Richard's posts, Visual Studio Extension for adding multiple projects to a solution, Cyotek Add Projects Extension updated for Visual Studio 2013 RTM and Add Projects Extension - 1.0.1.0

This is one of the simple extensions that can save you a good bit of time. Built by a dev, for a dev... Love those! :)



Tags:

Follow the discussion

  • Oops, something didn't work.

    Getting subscription
    Subscribe to this conversation
    Unsubscribing
    Subscribing

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.