Find which NuGet package contains the method you need! A VS Code extension that helps .NET developers quickly discover NuGet packages by searching for method names.
Features
🔍 Search by Method Name: Enter any method name to find NuGet packages that contain it
🖱️ Context Menu Search: Right-click on selected text to search for packages
📦 Smart Search: Searches across method names, class names, and namespaces
💻 Beautiful Results: Clean, organized display of search results with package information
⚡ Quick Actions: Copy install commands or execute them directly in the terminal
🎯 Sidebar Integration: Dedicated sidebar panel for quick access to search functionality
🔄 Real-time Search: Search bar in results page for instant new searches without leaving the view
Usage
Search via Sidebar
Click on the Which NuGet icon in the Activity Bar (left sidebar)
Enter a method name in the search box
Press Enter or click "Search NuGet Packages"
View results in the main panel
Search by Command Palette
Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
Type "Open Which NuGet" to open the sidebar
Or type "WhichNuget: Search by Method Name" for direct search
Enter the method name you're looking for
View results in the results panel
Search Selected Text
Select a method name in your code
Right-click to open context menu
Choose "WhichNuget: Search for Selected Method"
View results in the results panel
Real-time Search in Results
After viewing search results, use the search bar at the top of the results page
Enter a new method name and press Enter or click Search
Results update instantly without closing the view
Install Packages
From the search results, you can:
📋 Copy Install Command: Copy the dotnet add package command to clipboard
⬇️ Install Package: Auto-detect project type and install
▶️ Execute in Terminal: Run the install command directly in VS Code terminal
Example Searches
GetAsync - Find HTTP client packages
Parse - Find parsing libraries
ToJson - Find JSON serialization packages
SendAsync - Find messaging/HTTP packages
LogInformation - Find logging packages
Requirements
VS Code 1.74.0 or higher
.NET SDK (for package installation features)
Extension Settings
This extension contributes the following settings:
whichnuget.maxResults: Maximum number of search results to display (default: 20)
Screenshots
Search Results
The extension displays package information including:
Package name and version
Description
Download count
Authors
Tags
Verification status
Quick Actions
Each package has three action buttons for easy installation.
Known Issues
Search results are limited to packages indexed by NuGet.org
Some packages may not be found if they don't have proper metadata
Release Notes
0.0.2
New features:
Added dedicated sidebar panel in VS Code Activity Bar
Added real-time search bar in results page for quick new searches
Added "Open Which NuGet" command in Command Palette
Improved user experience with persistent search interface
0.0.1
Initial release of WhichNuget:
Basic method search functionality
Context menu integration
Terminal execution of install commands
Beautiful results display
Contributing
Found a bug or have a feature request? Please open an issue on GitHub.