无法将 Visual Studio 连接到 mac

tho*_*owa 7 xamarin visual-studio-mac visual-studio-2019

我试图让 Visual Studio 2019(社区版)与 Mac 一起使用来创建移动应用程序 iOS 和 Android。不幸的是,我整天都在为这种组合而苦苦挣扎。

我目前无法解决的问题是 Windows 上的 Visual Studio 中的以下错误:

An unexpected error occurred while checking the SSH configuration of '192.168.178.74'
An item with the same key has already been added.
Run Code Online (Sandbox Code Playgroud)

我尝试更改虚拟机的 MAC 地址以获取新的 IP 地址,但没有成功

我的设置:

  • Visual Studio 2019 社区与 Xamarin
  • 与 Windows 10 相同的机器上的 VM Ware 中的 Mac OS Catalina
  • Xcode 11.3.1
  • Visual Studio for Mac 社区 8.4.8(内部版本 2)

顺便提一句。我忘了提到,可以从 Windows 通过 ssh 登录到 Mac。

小智 14

我对此问题的解决方法是删除此目录中的 hosts.key 文件

%LOCALAPPDATA%\Xamarin\MonoTouch


tho*_*owa 1

看起来这是 Windows 上的 Visual Studio 的问题。微软似乎意识到了这一点并正在研究解决方案。

详细信息:https://developercommunity.visualstudio.com/content/problem/928605/an-error-occurred-while-generate-the-ssh-keys-pl.html

更新:微软最近刚刚发布了 Visual Studio 16.5.2 版本。该发布的(非预览)版本为我解决了这个问题;-)