Unable to download packages from a self hosted nuget server (404 error)

后端 未结 2 1451
忘掉有多难
忘掉有多难 2021-01-21 07:04

I installed a self hosted Nuget server as described here. I am using Windows 2008 R2, IIS 7.5 and Nuget 1.7.

From within VS I am able to see my self hosted packages in

相关标签:
2条回答
  • 2021-01-21 07:26

    please make sure in IIS to set the .nupkg extention mime type to application/zip.

    See also these discussion for more info: Issue #707, Discussion #246387

    0 讨论(0)
  • 2021-01-21 07:29

    I hade to perform 3 actions in order to get this to work finally

    1) Some of my packages has the extension ".symbols.nupkg" and I found out that the Nuget server cannot serve those packages only. If I change the extension of the package file from "".symbols.nupkg" to ".nupkg" everything works fine.

    2) All the packages has to be placed flat under the packages folder (no sub-folders).

    3) The packages folder has to be placed below the website (original location is fine, "~/Packages"). I tried to put it in absolute path "C:\NugetPackages" and it did not work.

    0 讨论(0)
提交回复
热议问题