I'm trying to install a nuget package. And I get the following error.
Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
Package Manager Console Host Version 6.10.2.8
Type 'get-help NuGet' to see all available NuGet commands.
PM> NuGet\Install-Package NAudio.Lame -Version 2.1.0
Attempting to gather dependency information for package 'NAudio.Lame.2.1.0' with respect to project 'abc.Win', targeting '.NETFramework,Version=v4.8'NuGet\Install-Package : Package 'NAudio.Lame 2.1.0' is not found in the following primary source(s):'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages,https://nuget.devexpress.com/ofhzGulIyleBlp5uTgWWzbmOCuhPOgs7vTSK8fjEKrl59uebCY/api/v3/index.json,C:\Program Files\DevExpress24.1\Components\System\Components\Packages'. Please verify all your online package sources are available (OR)package id, version are specified correctly.At line:1 char:1
- NuGet\Install-Package NAudio.Lame -Version 2.1.0
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPa ckageCommand
Time Elapsed: 00:00:01.8455023
I've done installations like this before, and it worked. How do I fix this error?
I'm expecting the nuget package installation to execute without errors. This way, the following code will not show any errors.
Shared Sub ConvertWAVtoMP3(inputWavPath As String, outputMp3Path As String) Using reader = New WaveFileReader(inputWavPath) Using writer = New LameMP3FileWriter(outputMp3Path, reader.WaveFormat, LAMEPreset.STANDARD) reader.CopyTo(writer) End Using End UsingEnd Sub