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:
@@ -2,18 +2,20 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<TargetFrameworks>net6.0-windows;net7.0-windows;net8.0-windows</TargetFrameworks>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>NibblePoker.Application.ListComPort</RootNamespace>
|
||||
<AssemblyName>NibblePoker.Application.ListComPort</AssemblyName>
|
||||
<AssemblyVersion>3.0.0</AssemblyVersion>
|
||||
<FileVersion>3.0.0</FileVersion>
|
||||
<Version>3.0.0</Version>
|
||||
<AssemblyVersion>4.0.0</AssemblyVersion>
|
||||
<FileVersion>4.0.0</FileVersion>
|
||||
<Version>4.0.0</Version>
|
||||
<NeutralLanguage>en-001</NeutralLanguage>
|
||||
<IsPackable>false</IsPackable>
|
||||
<Authors>Herwin Bozet (@NibblePoker)</Authors>
|
||||
<ApplicationIcon>..\NibblePoker.Packaging.ListComPort\Icons\lscom-v2-text-01.ico</ApplicationIcon>
|
||||
<Configurations>Release</Configurations>
|
||||
<Platforms>AnyCPU</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -21,7 +23,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NibblePoker.Library.Arguments" Version="1.1.0" />
|
||||
<PackageReference Include="NibblePoker.Library.Arguments" Version="2.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user