GitHub Copilot for NuGet (Public Preview)Supercharge your .NET package management with GitHub Copilot, now integrated with NuGet in Visual Studio. Available in Visual Studio 17.14 Preview and above. 🧠 OverviewGitHub Copilot for NuGet brings intelligent, real-time assistance to .NET developers managing dependencies in Visual Studio. From checking the latest version of a NuGet package to fixing vulnerabilities and performing complex upgrades, this extension simplifies tedious tasks using the power of AI and up-to-date package feed data. ✨ Key Features🔍 Real-time Package IntelligenceLarge language models (LLMs) are powerful, but their training data can quickly go out of date—especially when it comes to fast-moving ecosystems like NuGet. GitHub Copilot for NuGet solves the "Time Capsule" problem by integrating live data from your installed NuGet feeds (e.g., nuget.org, private feeds, etc.). ExampleAsk: @NuGet what is the latest version of Serilog? Copilot accesses your local NuGet feeds in real time and returns accurate, current version data—even for internal/private packages. 🔒 Vulnerability ResolutionManually resolving package vulnerabilities—especially transitive ones—is time-consuming and error-prone. GitHub Copilot for NuGet automates this process. ExampleAsk: @NuGet fix vulnerabilities The agent identifies vulnerable packages, determines the appropriate fix (even if transitive), and recommends precise changes. It respects project configuration (like Central Package Management) and shows you a clean diff before applying changes. 📦 Smart Multi-Package UpgradeUpdating multiple packages can quickly become a dependency nightmare. Copilot makes it easy with a linear programming algorithm developed in collaboration with Microsoft Research. It calculates the optimal upgrade set that respects all transitive and direct dependencies across all projects in your solution. ExampleAsk: @NuGet upgrade all packages Copilot runs the solver and updates all your dependencies to the latest compatible versions—no guesswork, no breakage. 🛠 How It WorksGitHub Copilot for NuGet operates in agent mode within Copilot Chat in Visual Studio. You interact naturally by typing prompts, like:
Behind the scenes, the NuGet Copilot agent:
🔐 Private Feeds and Enterprise SupportGitHub Copilot for NuGet supports private/internal feeds, enabling safe and intelligent package management even in enterprise environments with proprietary packages. 📈 Compatibility
💡 Why This MattersPackage management is one of the most error-prone, manually intensive tasks in the modern .NET development lifecycle. GitHub Copilot for NuGet:
🚀 Getting Started
🙌 AcknowledgmentsBuilt in collaboration between the NuGet team, GitHub Copilot team, Visual Studio team and Microsoft Research. |