You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何为我的项目添加NAudio?下载后找不到合适的.dll引用

How to Add NAudio to Your Project

Hey there! I totally get the frustration with the old Codeplex site being blocked and dealing with missing DLLs—let’s get you set up with NAudio the right way, since that outdated source is causing you headaches.

The Easiest & Most Reliable Way: Use NuGet

NuGet is the standard package manager for .NET projects, and it’s by far the simplest way to add NAudio without hunting for DLLs manually. Here’s how:

  • Via Visual Studio's NuGet Package Manager UI

    1. Right-click on your project in the Solution Explorer.
    2. Select Manage NuGet Packages from the menu.
    3. Switch to the Browse tab, then search for "NAudio".
    4. Look for the official package published by Mark Heath (the creator of NAudio), click Install, and wait for the process to finish. Visual Studio will automatically add the correct references to your project.
  • Via Package Manager Console

    1. Open Visual Studio's menu: Tools > NuGet Package Manager > Package Manager Console.
    2. Run this command in the console:
      Install-Package NAudio
      

    This will download the latest stable version of NAudio and wire up all necessary references for you.

If You Need to Manually Add DLLs (For Special Scenarios)

If you prefer or need to use a manual approach, note that NAudio’s official home is now on a modern code hosting platform (the Codeplex site is deprecated and no longer maintained). You can grab the latest pre-compiled DLLs from the project's official releases:

  1. Download the latest release package, then extract it.
  2. Navigate to the lib folder inside the extracted files—you’ll find subfolders for different .NET targets (like net45 for .NET Framework 4.5+, netstandard2.0 for cross-platform projects, etc.).
  3. Pick the DLL that matches your project’s .NET version, then right-click your project in Solution Explorer > Add > Reference > Browse to select and add the DLL.

Why Your Old Codeplex Download Didn’t Work

The Codeplex site has been retired for years, so the packages there are likely outdated, and the folder structure might be broken or incomplete. Using NuGet or the latest official releases ensures you get a working, up-to-date version of NAudio.

内容的提问来源于stack exchange,提问作者Jumanji

火山引擎 最新活动