Open assemblies from NuGet packages
dotPeek provides several ways to explore NuGet packages and assemblies they contain:
You can open any NuGet package from disk using the Assembly Explorer window, and then choosing one or several .nupkg files.command or by clicking on the toolbar of the
From package config file
You can load packages listed in a packages.config file in your Visual Studio project using the command.
From package source
You can load assemblies from NuGet packages using any local or remote package source.
Load assemblies from a NuGet package source
Click on the toolbar of the Assembly Explorer window or choose in the main menu . This will open the Open from NuGet dialog.
Specify a package source. This can be a disk path or a URL where dotPeek will look for NuGet packages.
Specify package filters. dotPeek will use this field to display only packages that contain the specified substring in their names.
Use the check boxes to define whether you want to find latest/all and release/pre-release package versions.
If the specified package source contains any packages matching the specified filter, you will see these packages in the list.
Choose the desired package and click Open to load the package and all assemblies it contains to the Assembly Explorer window. Optionally, select Load dependencies to load all dependent packages and assemblies.
From local package cache
If you want to explore assemblies from any NuGet packages that you have recently used, dotPeek will help you quickly find and open them from the NuGet global cache folder %USERPROFILE%\.nuget\packages\.
Load assemblies from local NuGet package cache
Click on the toolbar of the Assembly Explorer window or choose in the main menu . This will open the Open from NuGet Packages Cache dialog.
The dialog lists packages from all NuGet cache locations on your machine. Use the search field in the dialog to find the desired package.
Choose the desired package (you can Ctrl-click to select multiple packages) and then click Ok to load the packages and all assemblies from them to the Assembly Explorer window.