Added .net 7 and .net 8 targets, Fixed bug in args parsing, Removed debug builds & drone config, Updated dependencies

Update .drone.yml, .gitignore, and 4 more files...
This commit is contained in:
2024-05-24 00:08:50 +02:00
parent 2bf8401f51
commit 20052c3fb4
6 changed files with 20 additions and 35 deletions
@@ -7,7 +7,7 @@ using NibblePoker.Library.ComPortWatcher;
namespace NibblePoker.Application.ListComPort;
internal static class Program {
private const string Version = "3.0.0";
private const string Version = "4.0.0";
private static readonly Verb RootVerb = new Verb("");
@@ -51,8 +51,8 @@ internal static class Program {
.RegisterOption(OptionShowNameRaw).RegisterOption(OptionNoPretty).RegisterOption(OptionSort)
.RegisterOption(OptionSortReverse).RegisterOption(OptionTabPadding).RegisterOption(OptionVersion)
.RegisterOption(OptionVersionOnly), args);
} catch(ArgumentException) {
Console.Error.Write("Failed to parse the launch arguments, default options will be used.");
} catch(Exceptions.ArgumentsException) {
Console.Error.WriteLine("Failed to parse the launch arguments, default options will be used.");
_exitCode = ErrorCodes.ArgumentParsingFailure;
RootVerb.Clear();
}
@@ -85,7 +85,7 @@ internal static class Program {
Console.WriteLine("NibblePoker.Application.ListComPort (lscom) v" + Version);
Console.WriteLine("");
Console.WriteLine("Dependencies:");
Console.WriteLine("├─> NibblePoker.Library.Arguments v1.1.0");
Console.WriteLine("├─> NibblePoker.Library.Arguments v2.0.0");
Console.WriteLine("├─> NibblePoker.Library.ComPortHelpers v" + Version);
Console.WriteLine("└─> NibblePoker.Library.RegistryHelpers v0.0.1");
Console.WriteLine("");
@@ -94,7 +94,7 @@ internal static class Program {
Console.WriteLine("├─> https://github.com/aziascreations/DotNet-ListComPort");
Console.WriteLine("└─> https://github.com/aziascreations/DotNet-RegistryHelpers");
Console.WriteLine("");
Console.WriteLine("This software and all its libraries are licensed under the MIT license.");
Console.WriteLine("This software and all its libraries are released in the public domain under the CC0-1.0 license.");
return ErrorCodes.NoError;
}
@@ -191,7 +191,7 @@ internal static class Program {
_exitCode = ErrorCodes.NoComPorts;
}
// Allows the program to be ran from a shortcut without closing the console instantly.
// Allows the program to be run from a shortcut without closing the console instantly.
if(IsProgramRunDirectly()) {
Console.Write("\nPress any key to continue...");
Console.ReadKey();
@@ -200,7 +200,7 @@ internal static class Program {
return _exitCode;
}
// Imports "GetConsoleProcessList(...)" in order to know if the program was ran via a shortcut or CLI.
// Imports "GetConsoleProcessList(...)" in order to know if the program was run via a shortcut or CLI.
// See: https://learn.microsoft.com/en-us/windows/console/getconsoleprocesslist
[System.Runtime.InteropServices.DllImport("kernel32.dll")]
private static extern int GetConsoleProcessList(int[] buffer, int size);