1

Consider the following code:

return CreatedAtAction(nameof(GetItem),
    new { Id = item.id },
    item
);

I want to view the implementation of CreatedAtAction, so I right click on it and select Go To Implementation which gives me enter image description here

So, any way to comfortably jump to areas of interest in the ASP Net Core source code? Or do I really have to look things up in the Github repository? ):

stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
  • Similar question here: https://stackoverflow.com/questions/56383941/go-to-implementation-ending-up-with-the-symbol-has-no-implementations – devlin carnate Dec 30 '20 at 18:22
  • Depends on what version of .Net Core - (https://stackoverflow.com/questions/55626888/debug-net-core-source-visual-studio-2019) – Ryan Wilson Dec 30 '20 at 18:22
  • thank you both, but I do not want to debug it, I want to be able to just browse the code. – stefan.at.kotlin Dec 30 '20 at 18:27
  • The latter, I think.. unless you have the source code downloaded, built and referenced? https://github.com/aspnet/Mvc/blob/master/src/Microsoft.AspNetCore.Mvc.Core/ControllerBase.cs/ ? Or did I misunderstand the Q? – Caius Jard Dec 30 '20 at 18:53
  • @CaiusJard I was wondering if this browsing is somehow possible in Visual Studio (with maybe some initial configuration) instead of switching over to Github. E.g. I know this from AndroidStudio and referenced libraries, where one can directly inspect their code. Quite useful. – stefan.at.kotlin Dec 30 '20 at 19:30
  • Is it the same as [this](https://developercommunity.visualstudio.com/content/problem/670662/go-to-implementation-says-the-symbol-has-no-implem.html) reported bug? – devlin carnate Dec 30 '20 at 20:33
  • You could use DotPeek by Jetbrains. This will decompile a dll – scottdavidwalker Dec 30 '20 at 21:18

0 Answers0