【问题标题】:Nuget.Server on Mac OSXMac OSX 上的 Nuget.Server
【发布时间】:2017-04-20 01:21:20
【问题描述】:

我按照这些步骤在本地机器 (Mac) 上设置了我自己的 nuget 服务器

https://docs.microsoft.com/en-us/nuget/hosting-packages/nuget-server

我到了第 6 步,然后当我点击“这里”时,它给了我以下错误

System.Web.HttpException
The resource cannot be found.

Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Details: Requested URL: /nuget/Packages
Exception stack trace:
  at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext context) [0x00094] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web/StaticFileHandler.cs:77 
  at System.Web.DefaultHttpHandler.BeginProcessRequest (System.Web.HttpContext context, System.AsyncCallback callback, System.Object state) [0x0007f] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web/DefaultHttpHandler.cs:101 
  at System.Web.HttpApplication+<Pipeline>d__225.MoveNext () [0x008d4] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web/HttpApplication.cs:1335 
  at System.Web.HttpApplication.Tick () [0x00000] in /private/tmp/source-mono-2017-02/bockbuild-2017-02/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web/HttpApplication.cs:927 

请帮忙

【问题讨论】:

标签: macos nuget local nuget-server


【解决方案1】:

我可以在这种方法中看到两个问题。

  1. Nuget.Server 文档提到 IIS 作为 Web 服务器; IIS 不能在 Mac OSX 上运行。
  2. 而且,即使您最终使用操作系统的native web server,您也将需要WCF support in mono - 这似乎是一项正在进行的工作。

【讨论】:

  • here 所述,一种解决方法是在服务器上托管网络文件共享。它谈论的是 linux OS,但也可能适用于 Mac OSX。
猜你喜欢
  • 2011-10-28
  • 1970-01-01
  • 1970-01-01
  • 2014-07-25
  • 2011-06-02
  • 1970-01-01
  • 1970-01-01
  • 2013-10-29
  • 2018-10-27
相关资源
最近更新 更多