LinMinquan's Blog

Experience technology to change life

把Unity3D工程放在OneDrive上导致的问题

我是把Unity3D的工程整个放在OneDrive上进行同步,原本是想把代码在公司和家里进行同步,这样就可以方便在家里写代码了(有时代码写了一半,没有push到git server上去,也因为我司git server是在内网)。

用了一段时间后发现,用Visual Studio Community 2015时,经常打不开Unity3D的脚本文件(VS启动了,但成功打开.cs脚本)。Unity提示:

Could not open ‘D:/OneDrive/xxx/Projects/MyUnityProject/Temp/UnityLockfile’: The process cannot access the file because it is being used by another process.

在VS的Solution Explorer中想打开其它.cs文件时,提示:

Cannot access a disposed object.

但把工程移出OneDrive同步目录后就没问题了,暂时还没找到解决方法。


Share