Source and SupportBackgroundMy solutions used have lots of references to other projects as I would load common code as source code libraries. When creating a new solution (or retro-fitting an existing solution to use new libraries), I would 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, originally created for Visual Studio 2012 as I recall, is the result. I'm afraid it doesn't use WPF, so it's a touch ugly but it gets the job done. Note that in the intervening years I finally converted almost 100 common library projects into proper NuGet packages and so I haven't actually needed this extension for some time. As some people find it useful I tend to create a new version for each new version of Visual Studio but that's about it at the moment - the extension isn't really actively developed. Using the extensionTo use the extension, open the Tools menu and choose Add Projects. This will open a lovely unthemed Windows Forms dialogue containing a list of projects that can be automatically added. Projects are colour coded as follows
Note that the first time you open this dialogue, the list will be empty - the MRU must be populated by yourself. Check each project you want to add to your solution, then click the OK button. It will then try and add each selected project to your solution, skipping any that are already present. You can limit the projects displayed in the list by entering text into the Filter field. This filter text can be a regular expression and is matched on the entire filename, including the path. Configuring settingsThe settings dialog allows you to configure folder exclusions
used by the Find Projects dialogue (for example you probably
don't want to scan To display the settings dialog, click Settings from the main window. Configuring folder exclusionsEnter the names of any folders you want to exclude from
automatic scanning, one per line. These matches are a simple
text match on a full path, so use directory separators to avoid
partial matches - e.g. Configuring project typesEnter a simple description and file mask for each type, one type
per line. Separate the description and mask with the pipe ( See the Filter property documentation for
the Adding a single project to the MRUTo add a single project to the list, click the Add File button then select the project you want to include.
Adding multiple projects to the MRUTo add multiple projects to the list, click the Add Folder button, then select a folder. The folder (and its sub folders) will then be scanned for any projects not already in the main MRU. Tick the projects you want to add, then click OK to update the main list. Removing projects from the MRUTo remove projects from the MRU, select one or more projects, click the Remove button and then confirm the removal.
Configuration SettingsThe settings for the extension are saved into an XML file
located at
The The The Known IssuesThese are the issues I currently know about - please let me know if you find anything else.
More information can be found on the Cyotek Blog. Change LogPlease view the change log for this extension on the GitHub page for this project. |