Go to metadata from VB.net to F12 in visual studio

When developing with C #, you can right click the class and go to the definition. If the class is third-party code (microsoft or other dll reference) the class metadata appears. (otherwise you can press F12).

The useless Windows Object Explorer appears in VB.NET. Is there a way to make this behave like C #? I just want the metadata to appear. The Object Browser doesn't let you do free text searches in the same way you can with a regular text file (metadata).

For example, C # metadata looks like this (using IEnumerable):

#region Assembly mscorlib.dll, v4.0.0.0
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll

using System.Collections;

namespace System.Collections.Generic
    // Summary:
    //     Exposes the enumerator, which supports a simple iteration over a collection
    //     of a specified type.
    // Type parameters:
    //   T:
    //     The type of objects to enumerate.This type parameter is covariant. That is,
    //     you can use either the type you specified or any type that is more derived.
    //     For more information about covariance and contravariance, see Covariance
    //     and Contravariance in Generics.
    public interface IEnumerable<out T> : IEnumerable
        // Summary:
        //     Returns an enumerator that iterates through the collection.
        // Returns:
        //     A System.Collections.Generic.IEnumerator<T> that can be used to iterate through
        //     the collection.
        IEnumerator<T> GetEnumerator();


In VB.Net, the F12 key will display the Object Browser:

object browser


source to share

1 answer

If the third party code is written in C # and your code is written in vb.net, VS won't be able to show you the definition. This is a bug reported multiple times. Seems like "Metadata" or "Go to Definition" function only works in pure-C # or pure -VB.NET projects

see this post



All Articles