Publish package from c# code

Topics: Ecosystem, General
Oct 17, 2014 at 6:54 PM
Edited Oct 17, 2014 at 7:39 PM
I'm writing an app that grabs files from a VSO drop that contains nuget packages and then extracts it and publishes the package to our local nuget feed. Is there a way in my code to publish the package? I'm using the Nuget.Core API and can get the package info but I wasn't sure if there was a way to publish it or I would have to invoke a powershell command to do that.

To add to this: I am publishing to an Octopus Deploy nuget feed, which in their words "Octopus does not allow NuGet clients to connect to this feed to retrieve packages; the feed only supports deployable packages, and does't allow NuGet packages to be consumed from Visual Studio and other tools."