Get Nuget credentials stored somewhere by Visual Studio in a VSIX project
up vote
0
down vote
favorite
I'm developing a Visual Studio extension (VSIX project) that needs to manage Nuget packages of a given project. I'm already using the IVsPackageInstaller service as documented here but this is limited and I need more features (for example get the latest version number of a given package). I searched but didn't find anything on how to programmatically interact with the Visual Studio Package Manager so I decided to go for the Nuget API directly. I send HTTP requests to the Nuget API using the WebRequest class (because we can't use HttpClient in a VSIX project) but I'm hitting a problem: the requests are going to a private Nuget feed that needs authentication! (hosted on Azure DevOps) I used Fiddler to check the HTTP requests sent to our Azure DevOps server. I see a POST reque...