aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-23 12:03:18 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-23 12:03:18 +0300
commit1f2ebb7e81e6082ec31f3febbcf0f777263679aa (patch)
tree97fae56feb42f796e0fa08bc67c28bb319ef97f1 /Software/Visual_Studio/Tango.Logging
parentdc774f2956a749a9054aad17b04a202d5373548d (diff)
downloadTango-1f2ebb7e81e6082ec31f3febbcf0f777263679aa.tar.gz
Tango-1f2ebb7e81e6082ec31f3febbcf0f777263679aa.zip
Changed versions to per assembly.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging')
-rw-r--r--Software/Visual_Studio/Tango.Logging/LogManager.cs17
-rw-r--r--Software/Visual_Studio/Tango.Logging/Properties/AssemblyInfo.cs1
-rw-r--r--Software/Visual_Studio/Tango.Logging/Tango.Logging.csproj9
3 files changed, 25 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogManager.cs b/Software/Visual_Studio/Tango.Logging/LogManager.cs
index 5badff595..c0a8409ef 100644
--- a/Software/Visual_Studio/Tango.Logging/LogManager.cs
+++ b/Software/Visual_Studio/Tango.Logging/LogManager.cs
@@ -210,6 +210,23 @@ namespace Tango.Logging
}
/// <summary>
+ /// Logs the current referenced assemblies in the app domain.
+ /// </summary>
+ public void LogReferencedAssemblies()
+ {
+ String log = "--------------------- Referenced Assemblies --------------------------" + Environment.NewLine + Environment.NewLine;
+
+ foreach (Assembly a in AppDomain.CurrentDomain.GetAssemblies())
+ {
+ log += a.GetName().Name + ", v" + a.GetName().Version + Environment.NewLine;
+ }
+
+ log += Environment.NewLine + "--------------------- --------------------- --------------------------";
+
+ Log(log);
+ }
+
+ /// <summary>
/// Add new message log item.
/// </summary>
/// <param name="message">Message.</param>
diff --git a/Software/Visual_Studio/Tango.Logging/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Tango.Logging/Properties/AssemblyInfo.cs
index 161c5a04e..42fecf098 100644
--- a/Software/Visual_Studio/Tango.Logging/Properties/AssemblyInfo.cs
+++ b/Software/Visual_Studio/Tango.Logging/Properties/AssemblyInfo.cs
@@ -3,4 +3,5 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Tango - Logging Library")]
+[assembly: AssemblyVersion("2.0.*")]
[assembly: ComVisible(false)] \ No newline at end of file
diff --git a/Software/Visual_Studio/Tango.Logging/Tango.Logging.csproj b/Software/Visual_Studio/Tango.Logging/Tango.Logging.csproj
index d406ec41a..5b1aec968 100644
--- a/Software/Visual_Studio/Tango.Logging/Tango.Logging.csproj
+++ b/Software/Visual_Studio/Tango.Logging/Tango.Logging.csproj
@@ -45,8 +45,8 @@
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
- <Compile Include="..\Versioning\Core.cs">
- <Link>Core.cs</Link>
+ <Compile Include="..\Versioning\GlobalVersionInfo.cs">
+ <Link>GlobalVersionInfo.cs</Link>
</Compile>
<Compile Include="ApplicationCrashedEventArgs.cs" />
<Compile Include="ConsoleLogger.cs" />
@@ -75,4 +75,9 @@
</Page>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <UserProperties BuildVersion_StartDate="2000/1/1" />
+ </VisualStudio>
+ </ProjectExtensions>
</Project> \ No newline at end of file