From 1f2ebb7e81e6082ec31f3febbcf0f777263679aa Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 23 Jul 2018 12:03:18 +0300 Subject: Changed versions to per assembly. --- .../Properties/AssemblyInfo.cs | 1 + .../Properties/Resources.Designer.cs | 9 --------- .../Properties/Resources.resx | 4 ---- .../Tango.MachineStudio.UI/Resources/BuildDate.txt | 1 - .../DefaultStudioApplicationManager.cs | 10 ++++++---- .../Tango.MachineStudio.UI.csproj | 22 ++++++++++++---------- 6 files changed, 19 insertions(+), 28 deletions(-) delete mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Resources/BuildDate.txt (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs index 5cdfd162a..b8dffb406 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs @@ -4,4 +4,5 @@ using System.Runtime.InteropServices; [assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)] [assembly: AssemblyTitle("Tango - Machine Studio")] +[assembly: AssemblyVersion("2.0.*")] [assembly: ComVisible(false)] \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.Designer.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.Designer.cs index 5ff36aae1..c035ee88d 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.Designer.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.Designer.cs @@ -59,14 +59,5 @@ namespace Tango.MachineStudio.UI.Properties { resourceCulture = value; } } - - /// - /// Looks up a localized string similar to . - /// - internal static string BuildDate { - get { - return ResourceManager.GetString("BuildDate", resourceCulture); - } - } } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.resx b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.resx index 32307e87f..1af7de150 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.resx +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/Resources.resx @@ -117,8 +117,4 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - ..\Resources\BuildDate.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 - \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Resources/BuildDate.txt b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Resources/BuildDate.txt deleted file mode 100644 index 74eace1ea..000000000 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Resources/BuildDate.txt +++ /dev/null @@ -1 +0,0 @@ -Mon 07/23/2018 10:41:01.98 diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs index fdad31251..8a9e3a43b 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs @@ -56,6 +56,8 @@ namespace Tango.MachineStudio.UI.StudioApplication { TangoIOC.Default.GetAllInstancesByBase().ToList().ForEach(x => x.OnApplicationStarted()); }; + + LogManager.LogReferencedAssemblies(); }); }); } @@ -135,7 +137,7 @@ namespace Tango.MachineStudio.UI.StudioApplication { get { - return typeof(DefaultStudioApplicationManager).Assembly.GetName().Version.ToString(); + return AssemblyHelper.GetCurrentAssemblyVersion().ToString(2); } } @@ -264,7 +266,7 @@ namespace Tango.MachineStudio.UI.StudioApplication { get { - return typeof(ExtendedObject).Assembly.GetName().Version.ToString(); + return typeof(ExtendedObject).Assembly.GetName().Version.ToString(2); } } @@ -275,7 +277,7 @@ namespace Tango.MachineStudio.UI.StudioApplication { get { - return Properties.Resources.BuildDate; + return AssemblyHelper.GetCurrentAssemblyBuildDate().ToString(); } } @@ -286,7 +288,7 @@ namespace Tango.MachineStudio.UI.StudioApplication { get { - return EmbeddedResourceHelper.GetEmbeddedResourceText("Tango.MachineStudio.UI.ChangeLogs.MachineStudioChangeLog.txt") + Environment.NewLine + Environment.NewLine + Environment.NewLine + EmbeddedResourceHelper.GetEmbeddedResourceText("Tango.MachineStudio.UI.ChangeLogs.CoreChangeLog.txt"); + return EmbeddedResourceHelper.GetEmbeddedResourceText("Tango.MachineStudio.UI.ChangeLog.txt"); } } } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj index 4d581795b..162c8c780 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj @@ -133,8 +133,8 @@ Designer - - MachineStudio.cs + + GlobalVersionInfo.cs @@ -488,14 +488,10 @@ - - ChangeLogs\CoreChangeLog.txt - - - ChangeLogs\MachineStudioChangeLog.txt + + ChangeLog.txt - @@ -505,12 +501,13 @@ + + + if $(ConfigurationName) == Debug $(TargetDir)linkgen.exe -s "$(TargetPath)" -d "$(TargetDir)Utilities\Machine Studio.lnk" -echo %25date%25 %25time%25 > "$(ProjectDir)\Resources\BuildDate.txt" - RD /S /Q "$(TargetDir)cs\" RD /S /Q "$(TargetDir)da\" RD /S /Q "$(TargetDir)de\" @@ -563,4 +560,9 @@ RD /S /Q "$(TargetDir)nb-NO\" + + + + + \ No newline at end of file -- cgit v1.3.1