Publish/Web 为 Mac Visual Studio 社区部署

Publish/Web Deploy for Mac Visual Studio Community

有没有办法将 ASP.NET Core WebApp 发布到本地文件夹,而不仅仅是强制默认到 Azure?我环顾四周,找不到任何相关信息。

Is there a way to Publish ASP.NET Core WebApp to a local folder and not just the forced default to Azure?

我在 windows 平台上通过 dotnet publish 命令行测试它,它工作正常。你可以试试 Mas OS.

dotnet publish webprojectName.csproj --output localpath