clean up build compilation warnings; disable project determinism to auto generate build numbers; log build number, and build date and time; change reported software to be project aligned;

pull/1/head
Bryan Biedenkapp 11 months ago
parent 6cc2af192a
commit b44db8beb2

@ -23,9 +23,6 @@ namespace dvmconsole.Controls
/// </summary>
public partial class AlertTone : UserControl
{
private Point startPoint;
private bool isDragging;
public static readonly DependencyProperty AlertFileNameProperty =
DependencyProperty.Register("AlertFileName", typeof(string), typeof(AlertTone), new PropertyMetadata(string.Empty));

@ -149,9 +149,6 @@ namespace dvmconsole.Controls
{
private VuMeterViewModel viewModel;
private Brush borderColor;
private Shape fillColor;
/// <summary>
///
/// </summary>

@ -4,6 +4,7 @@
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows7.0</TargetFramework>
<Nullable>disable</Nullable>
<Deterministic>False</Deterministic>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<Platforms>AnyCPU;x64;x86</Platforms>
@ -22,6 +23,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryUrl>https://github.com/DVMProject/dvmconsole</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>1.0.*</AssemblyVersion>
</PropertyGroup>
<ItemGroup>

@ -13,8 +13,11 @@
*/
using System.Net;
using System.Reflection;
using fnecore;
using fnecore.Utility;
using NAudio.Mixer;
namespace dvmconsole
{
@ -66,6 +69,11 @@ namespace dvmconsole
FnePeer peer = new FnePeer("DVMCONSOLE", system.PeerId, endpoint, key);
Assembly asm = Assembly.GetExecutingAssembly();
SemVersion _SEM_VERSION = new SemVersion(asm);
string software = $"CONSOLE_R{_SEM_VERSION.Major.ToString("D2")}A{_SEM_VERSION.Minor.ToString("D2")}";
// set configuration parameters
peer.Passphrase = system.Password;
peer.Information = new PeerInformation
@ -73,7 +81,7 @@ namespace dvmconsole
Details = new PeerDetails
{
ConventionalPeer = true,
Software = "DVMCONSOLE",
Software = software,
Identity = system.Identity
}
};

@ -14,8 +14,12 @@
using System.Diagnostics;
using System.IO;
using System.Reflection;
using Newtonsoft.Json;
using fnecore.Utility;
namespace dvmconsole
{
/// <summary>
@ -181,8 +185,19 @@ namespace dvmconsole
if (SaveTraceLog)
Log.SetupTextWriter(Environment.CurrentDirectory, "dvmconsole.log");
Log.WriteLine("Digital Voice Modem - Desktop Dispatch Console");
Log.WriteLine("Copyright (c) 2025 DVMProject (https://github.com/dvmproject) Authors.");
Assembly asm = Assembly.GetExecutingAssembly();
#if DEBUG
SemVersion _SEM_VERSION = new SemVersion(asm, "DEBUG_FACTORY_LABTOOL");
#else
SemVersion _SEM_VERSION = new SemVersion(asm);
#endif
AssemblyProductAttribute asmProd = asm.GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0] as AssemblyProductAttribute;
AssemblyCopyrightAttribute asmCopyright = asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute;
DateTime buildDate = new DateTime(2000, 1, 1).AddDays(asm.GetName().Version.Build).AddSeconds(asm.GetName().Version.Revision * 2);
Log.WriteLine($"{asmProd.Product} {_SEM_VERSION.ToString()} (Built: {buildDate.ToShortDateString() + " at " + buildDate.ToShortTimeString()})");
Log.WriteLine($"{asmCopyright.Copyright}");
Log.WriteLine(">> Desktop Dispatch Console");
return true;

Loading…
Cancel
Save

Powered by TurnKey Linux.