如何在 Visual Studio 上连接远程 MAC 作为 Xamarin 的构建主机?

如何在 Visual Studio 上连接远程 MAC 作为 Xamarin 的构建主机?

问题描述:

我在家里配置并运行了 mac-mini.
我想将我的 Visual Studio 与那台 Mac 配对.

I have mac-mini configured and running at my home.
And I want to pair my Visual Studio to that mac.

如果它位于不同的网络中,是否可以将其配置为构建主机?

Is it possible to configure it as a build host in case when it's located in a different network ?

即Mac 在家,我的 Windows/Visual Studio 设置正在运行.

您的 OS-X 计算机必须通过端口 22 上的安全外壳连接 (SSH) 进行访问.

Your OS-X machine has to reachable by a secure shell connection (SSH) over port 22.

如果您可以从 Windows 的 PC SSH 到您的 Mac,比如说使用 Putty,那么是的,您可以将 Visual Studio/Xamarin 连接到该 Mac 并将其用作构建主机.

If you can ssh from your Windows' PC to your Mac, say using Putty, then yes, you can make Visual Studio/Xamarin connections to that Mac and use it as a build host.

1) 您可以通过 VPN 桥接两个专用网络

1) You can bridge two private networks via a VPN

2) 将您的 Mac(端口 22)暴露在公共互联网上(买家注意)

2) Expose your Mac (port 22) to the public Internet (buyer beware)

除了 Mac 上的安全性之外,关键问题是两台机器之间的连接速度/带宽.好吧,如果您只是将其用作构建主机而不使用 iOS 删除模拟器,那么流量并不大,网络延迟可能是真正的性能杀手.

The key issue, other then security on your Mac, is the speed/bandwidth of your connection between the two machines. Well the amount traffic is not really heavy if you are just using it as a build-host and not using the iOS removing simulator, network latency can be a real performance killer.

如果使用(新的)iOS 远程模拟器,带宽要求会攀升,而高网络延迟可能使其在某些情况下无法解决.

If using the (new) iOS Remote Simulator, bandwidth requirements climb and the high network latency can make it a non-solution in some situations.

(它只是一台 Mac-Mini,几乎可以放在口袋里,随身携带;-)