Visual Studio dependencies between projects: automatically open up related solution when browsing through code references?

时间:2015-09-01 22:01:07

标签: visual-studio continuous-integration resharper visual-studio-2015 build-system

We have a dozen or so Visual Studio solutions in this software application, each having between two and nine C# projects. There are many dependencies between the projects, not only within the same solution, but also across different solutions.

We use CreateNewNugetPackageFromProjectAfterEachBuild to automatically create a new Nuget package each time a project is built. New Nugets are manually copied into a local Nuget gallery, and we use the Nuget package manager to maintain correct References between the projects by upgrading the packages in each project as new packages become available in the local Nuget gallery. We aren't using a build manager or CI yet, but that's where this is inevitably headed.

Since every reference in every project points to an already-built DLL, and not a project file, it is not uncommon to encounter a metadata reference instead of actual code when you use "Go To Definition" or "Find Usages" on a class or method. Additionally, almost every method call goes through an interface. Navigating between projects in this way has become a bit of a nightmare, especially since the referenced code isn't always where it should be (the convention of naming the C# file the same name as the C# class isn't always respected). We are using a professional edition of Resharper, but it's not much help in this instance because it's not smart enough to jump into the other project/solution and show you the referenced code.

So here's my question. Is there some way to make Visual Studio smart enough so that, when you right click/go to reference and the reference is in another project in another solution, that Visual Studio will just go ahead and open that solution and project and show you the referenced code?

Or perhaps there is some other solution to our workflow problem that eludes us.

0 个答案:

没有答案