markjprice / cs11dotnet7

Repository for the Packt Publishing book titled "C# 11 and .NET 7 - Modern Cross-Platform Development Fundamentals" by Mark J. Price
566 stars 206 forks source link

Going To Implementation of a method #48

Closed MAS-OUD closed 1 year ago

MAS-OUD commented 1 year ago

On page 339, step 3, when I right-click in the Count method and select Go To Implementation the file Enumerable [from metadata] opens not the file Count.cs [SourceLink].

markjprice commented 1 year ago

This is explained when it is first introduced in Chapter 1. Here is the relevant errata item: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/errata.md#page-37---getting-definitions-of-types-and-their-members

I have also added an improvement item for it: https://github.com/markjprice/cs11dotnet7/blob/main/docs/errata/improvements.md#page-339---viewing-source-links-with-visual-studio-2022

MAS-OUD commented 1 year ago

The solution doesn't work for me. No matter whether the checkbox Enable navigation to Source Link and Embedded sources is checked or unchecked, selecting Go To Implementation opens the file ... [from metadata] for me.

markjprice commented 1 year ago

There must be something wrong with your Visual Studio installation because when Enable navigation to Source Link and Embedded sources is checked it is supposed to enable navigation to Source Link. You might want to raise an issue with Microsoft.