简体   繁体   English

如何使用 Visual Studio 查看/导航 asp.net 核心源代码?

[英]How to use Visual Studio to view/navigate asp.net core source code?

Currently if you press F12/go to definition, it will show metadata without acutal implementions.目前,如果您按 F12/转到定义,它将显示没有实际实现的元数据。 I know we can go to Github to view the source code but it is hard to navigate source code in browser.我知道我们可以 go 到 Github 来查看源代码,但很难在浏览器中导航源代码。 I can also use debugging with some required setting to view the source code in VS, but I don't want to use debug mode to view source code as I need to run the project, I just want to press F12 to see the source code, is a way to achieve this?我也可以使用调试和一些必需的设置来查看VS中的源代码,但是我不想使用调试模式查看源代码,因为我需要运行项目,我只想按F12查看源代码,是一种实现这一目标的方法吗?

Currently if you press F12/go to definition, it will show metadata without acutal implementions.目前,如果您按 F12/转到定义,它将显示没有实际实现的元数据。

Just press CTRL + F12 instead of just F12 .只需按CTRL + F12而不是F12 This will take you directly to the implementation.这将带您直接进入实施。 If there is more than one implementation, it will list all of the implementations so that you can choose.如果有多个实现,它将列出所有实现,以便您选择。

What's the version of your VS?你的VS是什么版本的?

If using VS 2013 and below, you can link to this answer to navigate.如果使用 VS 2013 及更低版本,您可以链接到此答案进行导航。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Visual Studio代码将实体框架核心安装到asp.net核心3项目 - How to install entity framework core to asp.net core 3 project using visual studio code 如何从 asp.net 核心 5.0 中实体核心中的数据库更新 Visual Studio 代码中的模型 - How to update models in visual studio code from database in Entity Core in asp.net core 5.0 使用 Visual Studio 代码创建 Asp.net MVC 应用程序(非核心) - Create Asp.net MVC Application (not core) with visual studio code 在Visual Studio Code中调试多个ASP.NET Core项目 - Debug multiple ASP.NET Core projects in Visual Studio Code 如何在Visual Studio中测量ASP.NET Core项目中的代码覆盖率? - How to measure Code Coverage in ASP.NET Core projects in Visual Studio? 如何在 Visual Studio 2022 / ASP.NET Core 5.0 MVC 中使用 Ajax? - How to use Ajax in Visual Studio 2022 / ASP.NET Core 5.0 MVC? 如何强制不优化 ASP.NET 核心源代码 - How to force ASP.NET Core source code to not be optimized 如何在ASP.NET MVC视图上将XSD架构与Visual Studio Intellisense一起使用 - How to use XSD Schema with Visual Studio Intellisense on ASP.NET MVC View ASP.NET 核心返回视图导航到锚点 - ASP.NET Core return View navigate to anchor 该程序已退出,Visual Studio Code + Asp.net 核心应用程序中的代码为 -532462766 - The program has exited with code -532462766 in Visual Studio Code + Asp.net core app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM