{"id":6852,"date":"2019-04-06T10:53:43","date_gmt":"2019-04-06T10:53:43","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=6852"},"modified":"2019-04-06T10:53:43","modified_gmt":"2019-04-06T10:53:43","slug":"solution-specific-nuget-repository-locations","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/solution-specific-nuget-repository-locations\/","title":{"rendered":"Solution specific NuGet repository locations"},"content":{"rendered":"<p>Whether we&#8217;re making our code available to others or want to simply implement solution specific changes to our NuGet repository locations, we can create a NuGet.config file which is stored in the same location as our solution. Here&#8217;s a simple example of a NuGet.config which adds a local NuGet location<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;configuration&gt;\r\n    &lt;packageSources&gt;\r\n       &lt;add key=&quot;Local&quot; value=&quot;c:\\Development\\LocalNuGet&quot; \/&gt;\r\n    &lt;\/packageSources&gt;\r\n&lt;\/configuration&gt;\r\n<\/pre>\n<p><strong>References<\/strong><\/p>\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/nuget\/consume-packages\/configuring-nuget-behavior\" rel=\"noopener noreferrer\" target=\"_blank\">Configuring NuGet behavior<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whether we&#8217;re making our code available to others or want to simply implement solution specific changes to our NuGet repository locations, we can create a NuGet.config file which is stored in the same location as our solution. Here&#8217;s a simple example of a NuGet.config which adds a local NuGet location &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;configuration&gt; &lt;packageSources&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[66],"tags":[],"class_list":["post-6852","post","type-post","status-publish","format-standard","hentry","category-nuget"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=6852"}],"version-history":[{"count":4,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6852\/revisions"}],"predecessor-version":[{"id":6889,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/6852\/revisions\/6889"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=6852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=6852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=6852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}