Added a version number display (#78)

* Added a version number

* Appends version number when loading subpages
This commit is contained in:
Michael Green
2023-09-01 23:48:08 +10:00
committed by GitHub
parent 8e922182e2
commit 4b6174e3e2
11 changed files with 88 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
using System.Reflection;
using System.Text.Json.Serialization;
using System.Reflection;
using System.Text.Json.Serialization;
using gaseous_server;
using gaseous_tools;
using Microsoft.AspNetCore.Http.Features;
@@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.OpenApi.Models;
Logging.Log(Logging.LogType.Information, "Startup", "Starting Gaseous Server");
Logging.Log(Logging.LogType.Information, "Startup", "Starting Gaseous Server " + Assembly.GetExecutingAssembly().GetName().Version);
// set up db
Database db = new gaseous_tools.Database(Database.databaseType.MySql, Config.DatabaseConfiguration.ConnectionString);