Skip to content

Commit c2da48c

Browse files
committed
Fix dotnet installation selection on Linux to favor lib over share
1 parent ca5cbf0 commit c2da48c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Tools/Flax.Build/Build/DotNet/DotNetSdk.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ public DotNetSdk()
199199
if (rid == ridFallback)
200200
ridFallback = "";
201201
if (string.IsNullOrEmpty(dotnetPath))
202-
dotnetPath = "/usr/share/dotnet/";
202+
{
203+
dotnetPath = "/usr/lib/dotnet/";
204+
if (!Directory.Exists(dotnetPath))
205+
dotnetPath = "/usr/share/dotnet/";
206+
}
203207
break;
204208
}
205209
case TargetPlatform.Mac:

0 commit comments

Comments
 (0)