VS Add-in to open a solution - visual-studio-2010

I am writing Visual Studio 2010 add-in. Purpose of this add in is to show all the VS solutions from a particular folder. We have around 100 solutions under our trunk folder. After add-in explore the folder and listed out solutions, developer would click any one of those solution to open it in same VS window. I have already a created a windows form in C# to list the solutions. Now I need to write a code to open the selected solution into the same VS window. I am not expert in Add-in writing. Any help would be appreciated.

Take a look at the Solution Load Manager extension. Source code available here.

Related

VS 2010 - Adding additional projects to Solution

At work we have just upgraded from VS2008 to VS2010 (keeping up with the times, I know). In VS2008 I used to navigate to various project folders in Source Control Explorer and double click the vbproj file and it would add it to my current Solution (or create a new solution if there wasn't one). The functionality in VS2010 seems to be that when I do this it closes my current Solution and opens the new project on its own.
Is there any way to get the VS2008 functionality back? I know I can right click on my Solution and Add->Existing Project..., but that takes a lot longer. I've tried Googling this but have come up blank.
Thanks in advance.
No, this beaviour was taken out from VS between 2008 and 2010. In 2010 when you double-click a *.csproj or *.vbproj file it will always open it up in a "temporary solution".
This gets annoying when comparing diffs between local changes to your project file... in my view VS should open it in the editor if anything. /rant

How to add action to Visual Studio Solution Explorer?

Please let me know how to add an action into the context-menu of "Solution Explorer" in Visual Studio?
I'd like to add my action into the context-menu of files listed in this explorer (see a screenshot for example), and then be able to launch my application (EXE file) that can get the filename (including its path) as an argument.
I currently use VS2008, however please let me know if that should be different with VS2010 and VS2012.
THANK YOU
Write your own visual studio Add-In take a look at that link this is good place to start. but its not easy...
You're going to have to write a Visual Studio Add-In.
Take a look at the code for the Xsd2Code addin on codeplex. Specifically the Connect class. This addin does something similar to what you want... it adds a context menu option that's available when you right-click on project items (in this case, only enabled for .xsd files).
Also, check out the Solution Explorer Context Menu sample within the Visual Studio 2005 Automation Samples download.

adding dialog - Visual c++ Express 2010

I'm used to using Visual Studio 6.0 to develop c++ APIs. I've downloaded and installed Visual c++ 2010 Express and now I find myself in a foreign land!
The first thing I did was make a hello blank windows app. That worked ok.
Next I thought I'd try looking at the "about" dialog but darned if I can find it. I also tried to create a new dialog but have no idea how to go about doing so.
So my questions are....
How do I look at the "about" dialog?
How do I add a new dialog?
I see there is a "add resource" if I right click the project directory but is grayed out.
Feeling like an idiot but thankful for any help....
From what I can determine, there is no resource editor in the c++ express product.
See Free resource editor for Windows .rc files?

What is the name of this Visual Studio 2010 plugin?

I'm watching the PluralSight tutorial videos, and during one of the code samples I noticed this in the solution explorer.
What is the name of the plugin/tool that lists the All Open Unsaved Edited in the solution explorer?
It's a Solution Navigator - part of Productivity Power Tools by Microsoft.
Its a Solution Navigator. You can read about it from this link
http://blogs.msdn.com/b/visualstudio/archive/2010/07/20/solution-navigator-blog-post.aspx?PageIndex=4

How to jump to a file in the Source Control Explorer in Visual Studio

I love the Solution Explorer > Right-click > "Open Containing Folder" feature of the PowerCommands extension for Visual Studio 2010. I want the equivalent of a "Jump to location in Source Control Explorer" feature. How can I find out the location in TFS of a given open file, or a file in the solution explorer (or a file in the solution navigator in you have the Productivity Power Tools extension)?
The best answer would be a couple of mouse clicks and no keyboard. Next best answer would be a hotkey mapping.
The only solution that I have found so far is to use the Productivity Power Tools extension which has the feature "Find in Source Control". A file in the results list can be right-clicked to "Open folder in Source Control Explorer". The drawbacks to this solution is that is takes many clicks, and the search results can match more than one file if files exist with the same name in different folders.
There is a stand-alone extension that you can download, called Locate in TFS, within Visual Studio.
"Locate in TFS" on TFS Gallery
"Locate in TFS" on GitHub
This also works on files that you "Exclude from source control", as many developers do with the web.config files.
psulek's post, above, mentions this as part of VSCommands, but I prefer the stand-alone extension.
Try Visual Studio extension VSCommands for Visual Studio 2012. It has feature called Locate in TFS. This will add new button to Solution Explorer Locate in TFS which opens active selected file/folder in TFS Source Control Explorer.
Feature request has been raised with Visual Studio team. Read here
I know it's probably too late. See TfsExt extension for vs2010
I'm not sure if it's possible, but it's a good suggestion.
These two examples show how to use the Visual Studio Extensibility APIs to access the TFS Source Control Explorer APIs.
http://blogs.msdn.com/b/edhintz/archive/2006/02/03/524312.aspx
http://blogs.msdn.com/b/bharry/archive/2008/07/09/working-on-tfs-sdk-improvements.aspx
For Visual Studio 2013 try lightweight extension TfsExt13

Resources