aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-22 07:01:05 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-04-22 07:01:05 +0300
commit405f1ac07d78468c3e1a0ef1c0dc8956635c8677 (patch)
treee7103eb16188663d28f0926b94eaabd87fb2473b /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs
parent499e0a03bb41e2330a47ccca83e6e6dfe7c5a634 (diff)
downloadTango-405f1ac07d78468c3e1a0ef1c0dc8956635c8677.tar.gz
Tango-405f1ac07d78468c3e1a0ef1c0dc8956635c8677.zip
FSE work + fixed issue with personal access token on MS and PPC.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs18
1 files changed, 11 insertions, 7 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs
index bfd5b0557..7b1727ec3 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs
@@ -245,14 +245,18 @@ namespace Tango.MachineStudio.UI.TFS
if (MachineOperator.EnableSessionLogFile)
{
var file = MachineOperator.SessionLogger.LogFile;
- var sessionLogFile = _tempFolder.CreateImaginaryFile();
- File.Copy(file, sessionLogFile.Path);
- item.Attachments.Add(new Attachment()
+
+ if (file != null && File.Exists(file))
{
- Description = "Session Log File",
- FilePath = sessionLogFile.Path,
- Name = Path.GetFileName(file),
- });
+ var sessionLogFile = _tempFolder.CreateImaginaryFile();
+ File.Copy(file, sessionLogFile.Path);
+ item.Attachments.Add(new Attachment()
+ {
+ Description = "Session Log File",
+ FilePath = sessionLogFile.Path,
+ Name = Path.GetFileName(file),
+ });
+ }
}
SystemInformationModel sysModel = new SystemInformationModel();