How can one unset a working folder via the API (v3.5.2)? The documentation doesn't seem to mention this.
In a previous post (for v2.0) i this was suggested:
Code: Select all
m_VaultClient.TreeCache.SetWorkingFolder(versionFolder.FullPath, null);
System.ArgumentNullException occurred
Message="Null disk path is invalid when setting working folder.\r\nParameter name: diskPath"
Source="VaultClientOperationsLib"
ParamName="diskPath"
StackTrace:
at VaultClientOperationsLib.TreeCache.SetWorkingFolder(String fullPath, String diskPath, Boolean forceSubfoldersToInherit, Boolean fromShadowFolders)
at VaultClientOperationsLib.TreeCache.SetWorkingFolder(String fullPath, String diskPath)
at RedGate.MSBuild.Tasks.UpdateVault.unSetWorkingFolder(VaultClientFolder versionFolder) in D:\Work\MSBuildTasks\MSBuildTasks\UpdateVault.cs:line 226
Setting the working folder to the empty string is no good, either, as only one folder can have that working folder.
So, how do you do it?
Thanks,
Tilman