Using Private NuGet Packages in Azure Web Sites
After wayyy too long – I’ve finally started breaking up my code into re-usable components and putting together NuGet feeds for them. In many case – I’m trying to put these together into a state that is suitable for others and releasing them as Open Source on GitHub . However, there is some code that I don’t want to go out to the public – but I still want to be able to break them up into components and generate NuGet packages for them. Enter the awesome MyGet . MyGet allows you to create your own private NuGet feeds amongst a whole load of other cool stuff – now the next challenge: how do I get Azure to build my site and restore the package from the private feed? Enable NuGet Package Restore This is super-easy, and in many cases you might have already done it . Right click the Solution and click “ Enable NuGet Package Restore ”. This will create a “.nuget” directory within your solution folder. In here are a few key files: NuGet.Config NuGet.exe NuGet.targets Now – we just...