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:
-18
@@ -1,18 +0,0 @@
|
||||
# Documentation:
|
||||
# * https://docs.drone.io/quickstart/docker/
|
||||
# * https://docs.drone.io/pipeline/docker/examples/languages/csharp/
|
||||
# * https://discourse.drone.io/t/builds-are-stuck-in-pending-status/4437
|
||||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: test
|
||||
image: mcr.microsoft.com/dotnet/sdk:6.0-alpine
|
||||
commands:
|
||||
- dotnet build "./NibblePoker.Application.ListComPort/NibblePoker.Application.ListComPort.csproj"
|
||||
@@ -1,6 +1,8 @@
|
||||
# IDEs
|
||||
.idea/
|
||||
.vs/
|
||||
|
||||
# Build Artifacts
|
||||
Builds/any/
|
||||
Builds/arm*/
|
||||
Builds/x*/
|
||||
@@ -25,4 +27,5 @@ Packages/
|
||||
*.wixobj
|
||||
*.wixpdb
|
||||
|
||||
# Misc
|
||||
notes.txt
|
||||
|
||||
@@ -10,12 +10,8 @@ Global
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{2E9CEFC2-66A8-4A03-84FB-C28F752F522C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2E9CEFC2-66A8-4A03-84FB-C28F752F522C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2E9CEFC2-66A8-4A03-84FB-C28F752F522C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2E9CEFC2-66A8-4A03-84FB-C28F752F522C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0E6E464E-8497-4752-8281-24A64E5E8A9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0E6E464E-8497-4752-8281-24A64E5E8A9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0E6E464E-8497-4752-8281-24A64E5E8A9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0E6E464E-8497-4752-8281-24A64E5E8A9D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<RootNamespace>NibblePoker.Library.ComPortWatcher</RootNamespace>
|
||||
<AssemblyName>NibblePoker.Library.ComPortHelpers</AssemblyName>
|
||||
<Configurations>Release</Configurations>
|
||||
<Platforms>AnyCPU</Platforms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user