Nuget.Server在Mac OSX
问题描述:
我跟着这个步骤设置本地计算机上我自己的NuGet服务器(苹果机)Nuget.Server在Mac OSX
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
请帮
答
我可以看到这个方法有两个问题。
- Nuget.Server文档提到IIS作为Web服务器; IIS不能在Mac OSX上运行。
- 而且,即使您最终使用的是您的操作系统的native web server,您也需要WCF support in mono--这看起来是一项正在进行的工作。
解决方法是在服务器上托管网络文件共享,如[所示](http://*.com/questions/15642139/system-servicemodel-activation-in-mono-3-0-7 )。它谈论的是linux操作系统,但也可能适用于Mac OSX。 – Ada