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?
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.
In order to come out of the infinite loop, we can use the break statement.
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.
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
You could try (CTRL + comma) which is 'Navigate to' as a workaround?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With