通过 LAN 从 Visual Studio 为 Mac 连接到 .NET Core 3 应用程序

Connecting to .NETCore 3 app from Visual Studio for Mac over LAN

我正在尝试通过本地 wifi 访问 Mac Visual Studio 上使用 .NETCore 框架构建的 MVC 网络应用程序。

对于Windows,相关问题是:

Connecting to Visual Studio debugging IIS Express server over the lan

编辑:这是针对 Visual Studio

的调试模式

在浏览器中,您应该使用端口调用 IP 地址(.Net Core 计算机)。例如:http://10.0.0.1:5000

这在当前的 VS 实现中是不可能的。

然而,VS 自带 live share 功能。这样宿主机就可以和live-shared的机器共享端口,在任何机器上都可以调试。