protected virtual void CheckOut(ProjectAssemblyInfo assemblyInfo, string assemblyInfoFile) { if (SourceControl != null) { try { var files = SourceControl.CheckOut( Path.GetDirectoryName(assemblyInfo.Project.DTE.Solution.FullName), assemblyInfoFile); if (files <= 0) { File.SetAttributes(assemblyInfoFile, FileAttributes.Normal); } } catch (Exception exception) { Common.MyLogger.WriteExceptionLog(exception); File.SetAttributes(assemblyInfoFile, FileAttributes.Normal); } } else { File.SetAttributes(assemblyInfoFile, FileAttributes.Normal); } }