NuGet.Core FindPackage for package with symbols

Topics: Ecosystem
Jul 22, 2014 at 10:27 AM

we are using NuGet and NuGet.Core with our own local repo at some UNC path (\server\dir).
Also when pushing packages we use the symbols option so there is always an package.version.symbols.nupkg around.

When getting a package in our app we use code similar to this:
var repo = PackageRepositoryFactory.Default.CreateRepository(Repository);
var packageManager = new PackageManager(repo, packagesDirectory);

var package = repo.FindPackage(PackageId);
packageManager.InstallPackage(package, true, false);
When using FindPackage how can I select the symbols package? Any idea?

Any help is greatly appreciated,
regards, Florian
Aug 21, 2014 at 6:07 PM
Three's no native API support for finding symbol packages. It was something that was kinda bolted onto the side of nuget so there's no API for consuming or creating those types of packages specifically.