diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-22 07:01:05 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-04-22 07:01:05 +0300 |
| commit | 405f1ac07d78468c3e1a0ef1c0dc8956635c8677 (patch) | |
| tree | e7103eb16188663d28f0926b94eaabd87fb2473b /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/TFS/TeamFoundationServiceExtendedClient.cs | |
| parent | 499e0a03bb41e2330a47ccca83e6e6dfe7c5a634 (diff) | |
| download | Tango-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.cs | 18 |
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(); |
