我是 dotnet 和 nginx 的新手。我已经在 Mac 上移动了我的 dontnet 项目(Visual Studio mac 预览版),所以在 Mac 中我没有 ISS。
因此,尝试像nginx或apache这样的 ISS 替代方案。
需要信息 - 如何在 Mac 机器上为 dotnet 项目 (csproj) 设置/配置 nginx 服务器?
我是 dotnet 和 nginx 的新手。我已经在 Mac 上移动了我的 dontnet 项目(Visual Studio mac 预览版),所以在 Mac 中我没有 ISS。
因此,尝试像nginx或apache这样的 ISS 替代方案。
需要信息 - 如何在 Mac 机器上为 dotnet 项目 (csproj) 设置/配置 nginx 服务器?
您应该能够在 Mac 上使用Kestrel之类的 HTTP 服务器运行ASP.NET Core ,并使用 nginx 作为静态内容的反向代理。
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app-xplat/start-mvc
对于控制台应用程序,请参见此处:https ://docs.microsoft.com/en-us/dotnet/core/tutorials/using-on-macos
希望这可以帮助