c# - 适用于 Mac 的 Visual Studio : How to run tests with x64

标签 c# visual-studio-mac

我刚刚发现,在 Visual Studio for Mac 中,从“单元测试”选项卡运行测试不在 x64 中。然而,我的整个解决方案真的依赖于 x64 吗?

我似乎找不到办法做到这一点?

最佳答案

您可以通过删除 mono32 可执行文件并创建从 mono64 到 mono32 的链接来手动修复它,直到发布带有修复程序的新版本 vs4mac。这将为您的安装移除 Mono 中对 32 位的支持,但所有工具和应用程序仍将正常工作,因为它们应该已经默认使用 64 位版本(mono 已经链接到 mono64 )。

$ cd /Library/Frameworks/Mono.framework/Commands/
$ sudo rm mono32
$ sudo ln -s mono64 mono32

关于c# - 适用于 Mac 的 Visual Studio : How to run tests with x64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52807883/

相关文章:

c# - TypeLoadException的解决方法

c# - Linq - 按姓名首字母分组

c# - 更改定时器 iOS Xamarin 的背景

.net-core - 如何在 Visual Studio 2017 Mac 中调试 .NET Core/Standard 单元测试?

c# - Quartz.net cron 触发表达式每两周一次

c# - 如何获取当月的最后一天和下个月的最后一天

c# - 如何使用 jquery 和 Web API 上传文件

mvvmcross - 如何更新MvvmCross?

visual-studio-mac - 阻止 Mac 上的 Visual Studio 在终端中打开新选项卡

azure - 在 Visual Studio Community for Mac 中发布到 Azure