{"id":460,"date":"2015-11-21T11:49:45","date_gmt":"2015-11-21T11:49:45","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2015\/11\/21\/hosting-your-own-nuget-feed\/"},"modified":"2017-12-17T13:42:39","modified_gmt":"2017-12-17T13:42:39","slug":"hosting-your-own-nuget-feed","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/hosting-your-own-nuget-feed\/","title":{"rendered":"How to Host your own Nuget Feed? | Step by Step Guide | Tutorial"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3144 size-full\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/hosting-your-own-nuget-feed.png\" alt=\"hosting-your-own-nuget-feed\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2015\/11\/hosting-your-own-nuget-feed.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2015\/11\/hosting-your-own-nuget-feed-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Hosting your own Nuget Feed?<\/p>\n<p><strong>1. Local File Based Package Source<\/strong><\/p>\n<p>Limitation with fles based source &#8211;<br \/>\nIt does not have nuget capable feed.<br \/>\nCan not push the package. We will have to copy into local directly<br \/>\nCan not use Nuget Gallery<\/p>\n<p><strong>2. Setup Nuget.Server<\/strong><\/p>\n<p><strong>Step 1<\/strong> &#8211; In Visual Studip, New Project and Select empty ASP.net Empty Web Application and name and save it.<br \/>\n<strong>Step 2<\/strong> &#8211; Using Package Manager console, install package Nuget.Server.<br \/>\n$ install-package nuget.server<br \/>\n<strong>Step 3<\/strong> &#8211; Look at the property of the project, under bottom part of web tab &#8211; find a port number. i.e &#8211; 42386. and open the server.<br \/>\nhttp:localhost:42386\/nuget<br \/>\n<strong>Step 4 <\/strong>&#8211; Navigate the page and learn about how to user server.<br \/>\n<strong>Step 5<\/strong> &#8211; Copy manually one nuget package and try using New NuGet Server using Visual Studip as source with http:localhost:42386\/nuget<br \/>\n$ get-package -listavailable<br \/>\n<strong>Step 6<\/strong> &#8211; Go to http:localhost:42386\/nuget and Refresh the package feed.<br \/>\n<strong>Step 7<\/strong> &#8211; How to access using command line &#8211; Modify the web.config and modify the apiKey as you want, Restart the application and to go http:localhost:42386\/nuget to find the insructions to push the package.<br \/>\n$ nuget.exe push pack.nupkg -s http:localhost:42386\/nuget SECRETKEY<\/p>\n<p><strong>3. Setup your Nuget Gallery<\/strong><\/p>\n<p>Step 1 &#8211; Download the zip software from https:\/\/github.com\/NuGet\/NuGetGallery<\/p>\n<p>Step 2 &#8211; Unzip it under your visual studio project folder and setup with IIS.<\/p>\n<p>Tools which is helpful to navigate the Nuget package feed.<br \/>\nLinkQPad4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hosting your own Nuget Feed? 1. Local File Based Package Source Limitation with fles based source &#8211; It does not have nuget capable feed. Can not push the package. We&#8230; <\/p>\n","protected":false},"author":1,"featured_media":3144,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[1122,1347,1349,545,933,1348,1334,593,399,230,1339,213],"class_list":["post-460","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised","tag-guide","tag-host","tag-host-own-nuget-feed","tag-how","tag-nuget","tag-nuget-feed","tag-nuget-gallery","tag-process","tag-server","tag-setup","tag-step","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=460"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/460\/revisions"}],"predecessor-version":[{"id":3303,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/460\/revisions\/3303"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3144"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}