From 17446569ca8d8dd00331da5926b938593c4b117f Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 20 Feb 2019 15:03:55 +0200 Subject: Fixed some issues with PPC publish and setup.. --- .../OS/DefaultOperationSystemManager.cs | 2 +- .../PPC/Tango.PPC.Common/Publish/PPCPublisher.cs | 2 +- .../Tango.PPC.Common/Web/MachineVersionsRequest.cs | 2 +- .../PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs | 1 + .../Tango.PPC.Publisher.UI.csproj | 27 ++++++++ Software/Visual_Studio/PPC/Tango.PPC.UI/App.config | 81 +--------------------- .../PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs | 2 +- 7 files changed, 33 insertions(+), 84 deletions(-) (limited to 'Software/Visual_Studio/PPC') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/OS/DefaultOperationSystemManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/OS/DefaultOperationSystemManager.cs index 75e8d40dc..650cda9ff 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/OS/DefaultOperationSystemManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/OS/DefaultOperationSystemManager.cs @@ -85,7 +85,7 @@ namespace Tango.PPC.Common.OS await Task.Delay(10000); - if (!await IsActivated()) + if (!(await IsActivated())) { throw new ApplicationException("The activation was completed but activation status returned a false response."); } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs index dfb544177..49e0a89c3 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Publish/PPCPublisher.cs @@ -182,7 +182,7 @@ namespace Tango.PPC.Common.Publish _client.NotifyUploadCompleted(new UploadCompletedRequest() { Token = response.Token, - }); + }).Wait(); remote_version = GetRemoteVersion(Options.MachineVersionGuid).Result; local_version = GetLocalVersion(); diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsRequest.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsRequest.cs index d5936bc9b..a1fd1d02f 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsRequest.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/MachineVersionsRequest.cs @@ -7,7 +7,7 @@ using Tango.Transport.Web; namespace Tango.PPC.Common.Web { - public class MachineVersionsRequest : WebRequestSecureMessage + public class MachineVersionsRequest : WebRequestMessage { } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs index 1d77b152f..ff07cb7a7 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/MainWindowVM.cs @@ -186,6 +186,7 @@ namespace Tango.PPC.Publisher.UI SettingsManager.Default.Save(); await _publisher.Publish(); ShowInfo("Version published successfully."); + await UpdateVersions(); } catch (Exception ex) { diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/Tango.PPC.Publisher.UI.csproj b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/Tango.PPC.Publisher.UI.csproj index 6a6b01a46..f40a4b338 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/Tango.PPC.Publisher.UI.csproj +++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher.UI/Tango.PPC.Publisher.UI.csproj @@ -13,6 +13,21 @@ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true AnyCPU @@ -156,6 +171,18 @@ Tango.PPC.Common + + + False + Microsoft .NET Framework 4.6.1 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/App.config b/Software/Visual_Studio/PPC/Tango.PPC.UI/App.config index 76c4cd552..ea49af905 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/App.config +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/App.config @@ -10,86 +10,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs index 702e7c388..fa54f491e 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Properties/AssemblyInfo.cs @@ -8,4 +8,4 @@ using System.Windows; // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Tango PPC Application")] -[assembly: AssemblyVersion("1.0.2.0")] +[assembly: AssemblyVersion("1.0.6.0")] -- cgit v1.3.1