NuGet.Core FindPackage for package with symbols

Topics: General
Jul 3, 2014 at 6:48 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