Skip to content

Commit

Permalink
ネイティブライブラリの解決を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Aug 19, 2023
1 parent 7a75057 commit 5015754
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace System.Runtime.Loader
{
internal partial struct LibraryNameVariation
{
private const string LibraryNamePrefix = "lib";
private static readonly string LibraryNamePrefix = "lib";
//#if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
// private const string LibraryNameSuffix = ".dylib";
//#else
Expand All @@ -25,6 +25,11 @@ static LibraryNameVariation()
{
LibraryNameSuffix = ".dylib";
}
else if(OperatingSystem.IsWindows())
{
LibraryNameSuffix = ".dll";
LibraryNamePrefix = "";
}
else
{
LibraryNameSuffix = ".so";
Expand Down

0 comments on commit 5015754

Please sign in to comment.