diff --git a/EonaCat.Logger/DllInfo.cs b/EonaCat.Logger/DllInfo.cs index b0a88a7..c682584 100644 --- a/EonaCat.Logger/DllInfo.cs +++ b/EonaCat.Logger/DllInfo.cs @@ -1,4 +1,6 @@ -namespace EonaCat.Logger; +using EonaCat.Versioning.Helpers; +using System.Reflection; +namespace EonaCat.Logger; // This file is part of the EonaCat project(s) which is released under the Apache License. // See the LICENSE file or go to https://EonaCat.com/License for full license details. @@ -19,4 +21,6 @@ public static class DllInfo internal static string VersionName { get; } public static string ApplicationName { get; internal set; } = "EonaCatLogger"; + + public static string EonaCatVersion => VersionHelper.GetEonaCatVersion(Assembly.GetExecutingAssembly()); } \ No newline at end of file diff --git a/EonaCat.Logger/EonaCat.Logger.csproj b/EonaCat.Logger/EonaCat.Logger.csproj index ad0f40d..0f884e9 100644 --- a/EonaCat.Logger/EonaCat.Logger.csproj +++ b/EonaCat.Logger/EonaCat.Logger.csproj @@ -52,10 +52,10 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + runtime; build; native; contentfiles; analyzers; buildtransitive; compile + + diff --git a/EonaCat.Logger/EonaCat.Logger.csproj.DotSettings b/EonaCat.Logger/EonaCat.Logger.csproj.DotSettings deleted file mode 100644 index 16c7a3d..0000000 --- a/EonaCat.Logger/EonaCat.Logger.csproj.DotSettings +++ /dev/null @@ -1,2 +0,0 @@ - - CSharp110 \ No newline at end of file diff --git a/EonaCat.Logger/libman.json b/EonaCat.Logger/libman.json new file mode 100644 index 0000000..ceee271 --- /dev/null +++ b/EonaCat.Logger/libman.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "defaultProvider": "cdnjs", + "libraries": [] +} \ No newline at end of file diff --git a/Testers/EonaCat.Logger.Test.Web/Program.cs b/Testers/EonaCat.Logger.Test.Web/Program.cs index 45d44cf..5d8129b 100644 --- a/Testers/EonaCat.Logger.Test.Web/Program.cs +++ b/Testers/EonaCat.Logger.Test.Web/Program.cs @@ -4,10 +4,12 @@ using EonaCat.Logger.EonaCatCoreLogger.Extensions; using EonaCat.Logger.EonaCatCoreLogger.Models; using EonaCat.Logger.Managers; using EonaCat.Logger.Test.Web; +using EonaCat.Versioning.Helpers; using EonaCat.Web.RateLimiter; using EonaCat.Web.RateLimiter.Endpoints.Extensions; using EonaCat.Web.Tracer.Extensions; using EonaCat.Web.Tracer.Models; +using System.Runtime.Versioning; var builder = WebApplication.CreateBuilder(args); int onLogCounter = 0; @@ -20,6 +22,9 @@ logger.MaxLogType = ELogType.TRACE; logger.LoggerSettings.OnLog += LoggerSettings_OnLog; logger.LoggerSettings.UseMask = true; +Console.WriteLine(DllInfo.EonaCatVersion); +Console.WriteLine(VersionHelper.GetInformationalVersion()); + void LoggerSettings_OnLog(EonaCatLogMessage message) { Console.ForegroundColor = ConsoleColor.Yellow;