首页 > 解决方案 > 无法在 macOS 上构建 VS 项目

问题描述

如果项目不在 Users/../projects 文件夹中,每当我尝试在 macOS 上构建 VS 项目时,我都会收到“路径上的共享冲突”错误。我将我的工作文件保存在单独的驱动器 (exFat) 上,该驱动器完全可以访问并且在 Windows 和 macOS 下都可以正常工作。

我认为这是由于某些权限违规而发生的,但我对 macOS 很陌生,无法弄清楚。

macOS 版本 - 莫哈韦沙漠

标签: visual-studiovisual-studio-mac

解决方案


Fixed in the way like kinhoon said, thanks. One useful side note: we can use "Home" env variable instead of hardcoded users/<user_id> folder

<IntermediateOutputPath Condition=" '$(OS)' == 'Unix' ">$(Home)\path_to_folder\$(Platform)\$(Configuration)</IntermediateOutputPath>

推荐阅读