VS 2010, Fortran, Find All References, Multi-Project Solution - visual-studio-2010

I have a multi-project Fortran Solution in VS 2010, using the Visual Fortran Compiler XE 14.0. When I right-click a function and select "Find All References," only references within the given project appear.
I have found similar posts here:
Find all reference on all projects in solution
How to find all references in a solution (thus of all projects)?
Visual Studio 2010 Solution Find all References Not Working
Reference (1) is closest to what I would expect (though the fact that any work is involved in achieving this functionality by the end-user is still gut-wrenchingly disappointing). Unfortunately the steps listed seem incongruent with my version of VS 2010 Professional (with SP1); namely, I do not have the option 'Properties>Common Properties' or any mention of 'References'.
Reference (2) has an accepted answer that is simultaneously unintelligible to me and, from what I can understand, seems to suggest that VS 2010 does not provide a simple solution to achieving this functionality.
Reference (3) has a solution that is not applicable to my circumstances.
The Question:
How may I, using VS 2010's built-in options, enable "Find All References" to search all projects in my solution?
(Note: I will not consider an answer that requires me to manually edit some file's text an acceptable answer. I fully expect to find that VS 2010 has a user-friendly way of doing this.)

Related

How to arrange projects order in Visual Studio's Solution explorer

Is there a way that we can arrange the Projects order in Visual Studio's solution explorer based on project references instead of default alphabetical order.
For e.g, we see some default hierarchies of projects when we generate Code map (.dgml)
I tried searching, but could not find anything.
Purpose: I need this feature in case someone looks an already developed solution with lots of projects for the first time.
Visual studio currently does not support that from what I've seen as well. There are some hacks our there like putting your projects into folders or manually editing the order in the SLN file but both are just that... Hacks.
Organizing a Solution with folders
Stackoverflow Similar Question
Visual Studio Product Enhancement Vote

Quickly open/switch Visual Studio Solutions

Does anyone know about a plugin (or built-in) functionality for quickly switching Visual Studio Solutions?
I'm working in a multi-solution project and need to switch the solution quite often (by reusing one of the open Visual Studio instances)
Any ideas?
If not, how hard would it be to write a plugin on my own?
You can add solutions to favorite links with my Favorite Documents extension.

Visual Studio Find All Not Referenced

In Visual Studio is there an automatic way to search over file(s) and find all classes/properties/methods that aren't referenced. Essentially abandoned code.
I don't want to manually have to right click on each and select "Find All References"
This is not a feature of Visual Studio in the current version. Using Roslyn you could code and Inspector yourself, but Roslyn doesn't offer one out of the box either at the moment. The walk-through on Semantic analysis should get you started. The roslyn forum is a good place to seek help or find examples, and there's a well monitored tag on StackOverflow as well of course.
Productivity plugins like Resharper and Code Rush offer this for sure. There are other similar tools that might have this feature JustCode, VisualAssist, CodeItRight are likely candidates.
You can also use something like Visual NDepend to detect unused methods. Their new command Linq to Code features should make it relatively easy to build a commandline tool that fishes out all unused calls.
A bit late but if you install SSDT (Sql Server Data Tools) this also add grayed reference count to each method in visual studio.
Note: This is actually "code lens" which is no longer available for VS2015. Installing the SSDT is the way you can have "code lens" in VS2015.

Accessing the VS2010 version of the Microsoft.VisualStudio.VCProjectEngine assembly in VS2012

My company recently created a Visual Studio 2010 add-in that allows us to create LINT files from any given visual studio project from 2010, 2008 and 2005. We now want to get this same add-in to work in Visual Studio 2012, because we know that many of our customers will be using this in the near future, if not already.
We thought that it should be a simple "switch-in", and that the same code should work for both, but lo and behold, the VS10 add-in didn't work in VS12. So I copied the code (absolutely no changes) into a VS12 add-in, and surprise surpise, it did work. Naturally, we do not want to have two versions of the same code; bad for readability, bad for maintainability, so we still want to find a way to get the VS10 add-in to work in VS12.
I think the problem lies in the Microsoft.VisualStudio.VCProjectEngine assembly. This is interpreted differently in VS12 to how it was in VS10, meaning that when VS12 reads the add-in, it doesn't do what we want it to do.
I have done some research into this problem, and many people suggest creating a work around by using reflection, but I am reasonably new to this concept and don't feel confident enough to try it and risk seriously ruining the add-in.
So my question is this: Is there a nice and easy way of being able to read the VS10 version of the Microsoft.VisualStudio.VCProjectEngine into VS12?
Much appreciated :)
I later found an answer to this question and realised it hadn't been confirmed on the thread.
The answer indeed lies in the VCProjectEngine assembly. For some reason, this is a different module in Visual Studio 2010 to the module (with the same name) in Visual Studio 2012, which means any code requiring the module when written in VS2012 will not work in VS2010 and visa-versa.
It's a pain, because it means we have two lots of exactly the same code, but that is the way it has to be.

Is there a "Favourites" section or equivalent in Visual Studio to facilitate the location of regularly opened files?

Someone asked the question "I have a Visual Studio solution with many projects; how can I organise them so I can easily find the projects I work most on?" ( Favorite projects in big solution in Visual Studio
)
My question is similar: I have a (C++) project with many files across many filters and it's cumbersome to locate certain files that I use a lot. Is there a favourites or equivalent that I can reference these oft opened files so that finding them is a breeze?
Your help is much appreciated!
--Edit--
BTW I'm using VS2008 at work and VS2010 at home.
You didn't mention what version of VS you're using, but this add-in looks promising for 2005 and 2008.
Or there's this one for 2010!

Resources