We are using SharpSvn to add SolidWorks files programatically to SVN tortoise. When file is open in SolidWorks, i want to add it to SVN by code without closing file. I used code below
var SvnResult = new SvnResult();
var FullPath = SvnHelper.FileCombine(FileName);
try
{
var SvnArg = new SvnAddArgs();
SvnArg.Force = true;
SvnArg.Depth = SvnDepth.Infinity;
//
SvnClient.Add(FullPath, SvnArg);
SvnResult.Message = "Success.";
SvnResult.Status = true;
//
return SvnResult;
}
catch (SvnException exc)
{
SvnResult.Message = exc.Message;
SvnResult.Status = false;
return SvnResult;
}
and i get error like this : The process cannot access the file because it is being used by another process.
How can i add it to SVN without closing file? Regards,