Fix dotnet installation selection on Linux to favor lib over share

This commit is contained in:
Wojtek Figat
2023-07-08 21:05:20 +02:00
parent ca5cbf05be
commit c2da48c49f

View File

@@ -199,7 +199,11 @@ namespace Flax.Build
if (rid == ridFallback)
ridFallback = "";
if (string.IsNullOrEmpty(dotnetPath))
dotnetPath = "/usr/share/dotnet/";
{
dotnetPath = "/usr/lib/dotnet/";
if (!Directory.Exists(dotnetPath))
dotnetPath = "/usr/share/dotnet/";
}
break;
}
case TargetPlatform.Mac: