Tuesday, September 22, 2015

Adding NuGet Package Dependencies

If you are publishing your own NuGet Packages, you will first need to download a copy of NuGet Package Explorer: https://npe.codeplex.com/

Once you have that downloaded and installed, you can then begin adding Dependencies to your NuGet Package!

  1. Create a new Package in Package Explorer
  2. Begin editing the Package Metadata
  3. Click on the button for "Edit dependencies"
  4. Click on the + sign to create a new group
  5. Click on the icon in the bottom left hand corner for "Select dependency from NuGet feed"
  6. Make sure you type in the Url of your NuGet server or the Official NuGet server Url: https://nuget.org/api/v2/
  7. Select a package that you want to use as your dependency and click the "Open" hyperlink
  8. Click on the + icon to "Add new dependency"
  9. Once all of your dependencies have been added, you can click on the OK button
  10. You will now be able to view your package dependencies as part of your Package Metadata!






No comments:

Post a Comment