{"id":607,"date":"2012-03-13T21:13:04","date_gmt":"2012-03-14T02:13:04","guid":{"rendered":"http:\/\/hoolihan.net\/blog-tim\/?p=607"},"modified":"2012-03-13T21:13:04","modified_gmt":"2012-03-14T02:13:04","slug":"strange-nuget-error","status":"publish","type":"post","link":"http:\/\/hoolihan.net\/blog-tim\/2012\/03\/13\/strange-nuget-error\/","title":{"rendered":"Strange NuGet Error"},"content":{"rendered":"<p>One of the projects that I work on uses NuGet for library management. We have a rake task that runs build, clean, etc. One of the rake tasks runs NuGet.exe which is stored in a tools directory. That way, everyone uses the same version of NuGet even if they have different versions installed in their program files directory.<\/p>\n<p>For some strange reason I was getting errors when running the rake task that updated the packages. Sometimes it was a generic error, sometimes &#8220;Archive file cannot be size 0&#8221;. I verified that the NuGet version hadn&#8217;t changed. I tested on other machines. I tried running the command by hand to take rake out of the equation. On one machine, it wouldn&#8217;t work. Every other machine fine. <\/p>\n<p>I even wiped the folder and checked out again with git. No luck. Finally, I decide to look for a NuGet local cache and see if I had bad packages. Delete the contents of C:\\Users\\YourUsername\\AppData\\Local\\NuGet\\Cache\\ and this problem will go away. Hopefully this info saves you some time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the projects that I work on uses NuGet for library management. We have a rake task that runs build, clean, etc. One of the rake tasks runs NuGet.exe which is stored in a tools directory. That way, everyone uses the same version of NuGet even if they have different versions installed in their [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,34,18],"tags":[41,69,155,272],"class_list":["post-607","post","type-post","status-publish","format-standard","hentry","category-aspnet","category-microsoft","category-programming","tag-net","tag-linkedin","tag-nuget","tag-programming"],"_links":{"self":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/comments?post=607"}],"version-history":[{"count":0,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/posts\/607\/revisions"}],"wp:attachment":[{"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/media?parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/categories?post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hoolihan.net\/blog-tim\/wp-json\/wp\/v2\/tags?post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}