unity 报错如下:
SVN CLI (Command Line Interface) not found. You need to install it in order for the SVN integration to work properly.
UnityEngine.Debug:LogError(Object)
DevLocker.VersionControl.WiseSVN.Preferences.SVNPreferencesManager:Initialize(Boolean) (at Assets/Editor/DevLocker/VersionControl/WiseSVN/Editor/Preferences/SVNPreferencesManager.cs:189)
DevLocker.VersionControl.WiseSVN.Utils.EditorPersistentSingleton`1:get_Instance() (at Assets/Editor/DevLocker/VersionControl/WiseSVN/Editor/Utils/EditorPersistentSingleton.cs:46)
DevLocker.VersionControl.WiseSVN.AutoLocking.SVNAutoLockingDatabaseStarter:TryStartIfNeeded() (at Assets/Editor/DevLocker/VersionControl/WiseSVN/Editor/AutoLocking/SVNAutoLockingDatabaseStarter.cs:21)
DevLocker.VersionControl.WiseSVN.AutoLocking.SVNAutoLockingDatabaseStarter:.cctor() (at Assets/Editor/DevLocker/VersionControl/WiseSVN/Editor/AutoLocking/SVNAutoLockingDatabaseStarter.cs:16)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes() (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:168)
解决办法:
用TortoiseSVN安装包修复,找不到安装包就下个包。安装时选择如下图
正常下一步完成后,重新打开UNITY就不报错了。
原因:
unity 安装插件 wise svn需要用到CLI接口,而svn安装时,这个选项默认是不装的,所以才出现这个问题