Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to stop the c# metadata from showing when navigating to a class or method in a VB.NET project from a C# project

So the scenario is this;

I have a VB.NET project and a C# project in the same VS2010 solution. The VB.NET project is referenced (and used) by the C# project as a project reference. If while I am in the C# project, and I Ctrl-Click or Go to Definition on an element that is part of the VB project, it takes me to C# generated metadata instead of the actual VB code file.

Is there any way to get this to go to the VB code file, so I dont have to navigate manually in solution explorer/navigator?

like image 942
StingyJack Avatar asked Jan 13 '12 19:01

StingyJack


People also ask

How can I stop the loop in C?

break command (C and C++) break ; In a looping statement, the break command ends the loop and moves control to the next command outside the loop. Within nested statements, the break command ends only the smallest enclosing do , for , switch , or while commands.

How do you stop an infinite loop in C?

In order to come out of the infinite loop, we can use the break statement.

How does break work in C?

The break statement terminates the execution of the nearest enclosing do , for , switch , or while statement in which it appears. Control passes to the statement that follows the terminated statement.


2 Answers

Currently there is no way to get "Goto Definition" to navigate between projects of different languages. The problem is not just limited to C# and VB.Net but extends to other managed languages like F# and C++/CLI. Each language sees the other as a DLL reference and hence you get metadata.

This is a known issue and something the language teams are well aware of. It's usually high on the list of potential items for future versions of Visual Studio

like image 92
JaredPar Avatar answered Oct 25 '22 12:10

JaredPar


You could try (CTRL + comma) which is 'Navigate to' as a workaround?

like image 20
Standage Avatar answered Oct 25 '22 12:10

Standage