Fix gestione e display versione

This commit is contained in:
Samuele Locatelli
2022-06-21 14:31:49 +02:00
parent fc36b427c4
commit d27dbbeb07
21 changed files with 29 additions and 18 deletions
@@ -9,6 +9,7 @@
<Description>OPC UA Console Client</Description>
<Copyright>Copyright 2020+ EgalWare</Copyright>
<RootNamespace>MP.MONO.ADAPTER.OPC</RootNamespace>
<Version>1.2.2206.2114</Version>
</PropertyGroup>
<ItemGroup>
+5 -1
View File
@@ -16,6 +16,7 @@ using NLog;
using StackExchange.Redis;
using System.Collections.Generic;
using static MP.MONO.Core.Enums;
using System.Reflection;
namespace MP.MONO.ADAPTER.OPC
{
@@ -51,8 +52,11 @@ namespace MP.MONO.ADAPTER.OPC
public static async Task Main(string[] args)
{
TextWriter output = Console.Out;
output.WriteLine(lineSep);
output.WriteLine("Egalware | MP.MONO.ADAPTER | OPC UA Console Client");
output.WriteLine($"vers.{Assembly.GetExecutingAssembly().GetName().Version}");
output.WriteLine(lineSep);
output.WriteLine();
output.WriteLine("OPC UA library: {0} @ {1} -- {2}",
Utils.GetAssemblyBuildNumber(),
Utils.GetAssemblyTimestamp().ToString("G", CultureInfo.InvariantCulture),
+1 -1
View File
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.12206.2114</Version>
<Version>1.2.2206.2114</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.12206.2114</h4>
<h4>Version: 1.2.2206.2114</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.12206.2114
1.2.2206.2114
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.12206.2114</version>
<version>1.2.2206.2114</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.ANALYZER/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.ANALYZER/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.12206.2114</Version>
<Version>1.2.2206.2114</Version>
</PropertyGroup>
<ItemGroup>
+3
View File
@@ -10,6 +10,7 @@ using Newtonsoft.Json;
using NLog;
using NLua;
using StackExchange.Redis;
using System.Reflection;
using static MP.MONO.Core.Enums;
// See https://aka.ms/new-console-template for more information
@@ -29,6 +30,8 @@ Logger Log = LogManager.GetCurrentClassLogger();
string lineSep = "---------------------------------------------";
Console.WriteLine(lineSep);
Console.WriteLine("Start DECODER with LUA integration!");
Console.WriteLine($"vers.{Assembly.GetExecutingAssembly().GetName().Version}");
Console.WriteLine(lineSep);
Console.WriteLine("");
Console.WriteLine("Running - press CTRL-C to stop");
Console.WriteLine(lineSep);
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.12206.2114</h4>
<h4>Version: 1.2.2206.2114</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.12206.2114
1.2.2206.2114
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.12206.2114</version>
<version>1.2.2206.2114</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.DECODER/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.DECODER/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.12206.2114</Version>
<Version>1.2.2206.2114</Version>
</PropertyGroup>
<ItemGroup>
+3
View File
@@ -7,6 +7,7 @@ using MP.MONO.Core.DTO;
using Newtonsoft.Json;
using NLog;
using StackExchange.Redis;
using System.Reflection;
using static MP.MONO.Core.Enums;
// init parte config, vedere https://blog.hildenco.com/2020/05/configuration-in-net-core-console.html
@@ -37,6 +38,8 @@ bool logWriting = false;
logInfo(lineSep, true, true);
logInfo($"Starting Machine SIM", true, true);
logInfo($"vers.{Assembly.GetExecutingAssembly().GetName().Version}", true, true);
logInfo("", true, true);
logInfo($"Redis server param: {redisConf.Substring(0, 20)}...", false, true);
logInfo(lineSep, true, true);
logInfo("", true, true);
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.12206.2114</h4>
<h4>Version: 1.2.2206.2114</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.12206.2114
1.2.2206.2114
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.12206.2114</version>
<version>1.2.2206.2114</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.SIM/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.SIM/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.12206.2114</Version>
<Version>1.2.2206.2114</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.12206.2114</h4>
<h4>Version: 1.2.2206.2114</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.12206.2114
1.2.2206.2114
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.12206.2114</version>
<version>1.2.2206.2114</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -1 +1 @@
1.1
1.2.