From 92fbbe9c16604cae611bb0c87519bf6d1ac52ecb Mon Sep 17 00:00:00 2001 From: Lucas Viana Date: Sat, 14 Oct 2023 11:23:31 -0300 Subject: [PATCH] ci(tests): simplify the `ChannelSettings.NativeLib` definition --- YDotNet/Native/ChannelSettings.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/YDotNet/Native/ChannelSettings.cs b/YDotNet/Native/ChannelSettings.cs index 2dc2eebf..b138e7c9 100644 --- a/YDotNet/Native/ChannelSettings.cs +++ b/YDotNet/Native/ChannelSettings.cs @@ -2,9 +2,8 @@ namespace YDotNet.Native; internal static class ChannelSettings { -#if WINDOWS - public const string NativeLib = "yrs.dll"; -#else - public const string NativeLib = "libyrs.dylib"; -#endif + // The file extension doesn't need to be defined here because the `DllImport` attribute adds it automatically. + // + // More information: https://learn.microsoft.com/en-us/dotnet/standard/native-interop/native-library-loading + public const string NativeLib = "yrs"; }