![]() ![]() ClassLibrary must be in the same solution as the project that you're navigating from.In short, in order to navigate to the definition of Class.Example() in ClassLibrary: On the other hand, if when adding the reference the Projects tab is chosen the language service understands that the source for the project is in the same solution, and can thereby navigate to it. If you add a reference by right-clicking the ConsoleApplication project, selecting Add Reference., and choosing the Browse tab then the language service will assume that ClassLibrary doesn't have associated source and will therefore navigate to the generated metadata view instead. ![]() For example, if you have two projects "ClassLibrary" and "ConsoleApplication", and ClassLibrary contains: The C# language service engine will show the 'metadata as source' view when the reference that contains the definition of the code element is a "file" reference.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |