简体   繁体   English

如何从Visual Studio中下载的包中查看源代码

[英]How to view the source code from downloaded packages in Visual Studio

I am working on TOTP and have downloaded a package in Visual Studio 2013 by: 我正在使用TOTP,并通过以下方式在Visual Studio 2013中下载了软件包:

Tools --> Library Package Manager --> Manage Nuget Package Packages

在此处输入图片说明

However there seems to be no documentation for this downloaded package. 但是,似乎没有有关此下载程序包的文档。 So is there anyway I can view all the code and implementation in this package in order for me to know how to use the classes in the package? 因此,无论如何,我可以查看此程序包中的所有代码和实现,以便让我知道如何使用程序包中的类吗?

After including the package: 包含包装后:

using Albireo.Otp;
using Albireo.Base32;

I can go to the definition from the classes within the package by 我可以从包中的类转到定义

right clicking the class --> Go To Definition.

But is there a way to view all the files and implementations from this downloaded package? 但是,有没有办法查看此下载包中的所有文件和实现?

For that specific library, the source is at https://github.com/kappa7194/otp 对于该特定库,其源位于https://github.com/kappa7194/otp

To answer your question, You can either use Assembly Explorer or Object Browser in VS. 要回答您的问题,可以在VS中使用Assembly Explorer或Object Browser。

Go to Solution Explorer -> Open references --> Right click on the referenced library

在此处输入图片说明

Im using VS 2016 not sure if VS 2013 has that feature. 我正在使用VS 2016,不确定VS 2013是否具有该功能。

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

相关问题 从 Visual Studio 2017 内部查看内置 function 的源代码? - View source code of built in function from inside Visual Studio 2017? 将框架/NuGet 包的源代码添加到 Visual Studio - Add source code for frameworks/NuGet packages to Visual Studio 如何将Visual Studio中的所有源代码导出到文本文件中? - How to export all the source code from Visual Studio into a text file? 如何通过单击F12在Visual Studio 2015中查看依赖项的源代码? - How to view source code of dependencies in Visual Studio 2015 by clicking F12? 如何使用 Visual Studio 查看/导航 asp.net 核心源代码? - How to use Visual Studio to view/navigate asp.net core source code? 从Visual Studio Code中的NPM包自动导入 - Auto Import from NPM packages in Visual Studio Code 如何在Visual Studio IDE中从github查看源代码,但如何使用Nuget的dll进行编译? - How to see source code from github in Visual Studio IDE, but compile with dlls from Nuget? 如何从Visual Studio for Mac中的源代码编辑器导航到Xamarin API文档? - How to navigate from Source Code Editor in Visual Studio for Mac to Xamarin API documentation? 如何在 Visual Studio 中从 Go 到 C# 到 F# 的源代码定义(不是元数据)? - How to Go To Source Code Definition (not Metadata) from C# to F# in Visual Studio? Visual Studio 2008-从源代码添加组件 - Visual Studio 2008 - Add Component from Source Code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM