Various improvements to building nethost

This commit is contained in:
Wojtek Figat
2024-01-12 13:44:50 +01:00
parent 5b3e7f0bf8
commit 9a70f698b9
4 changed files with 9 additions and 5 deletions

View File

@@ -309,7 +309,7 @@ namespace Flax.Build
// Peek class library folder
var coreLibPaths = Directory.GetFiles(aotAssembliesPath, "System.Private.CoreLib.dll", SearchOption.AllDirectories);
if (coreLibPaths.Length != 1)
throw new Exception("Invalid C# class library setup in " + aotAssembliesPath);
throw new Exception($"Invalid C# class library setup in '{aotAssembliesPath}' (missing C# dll files)");
var dotnetLibPath = Utilities.NormalizePath(Path.GetDirectoryName(coreLibPaths[0]));
Log.Info("Class library found in: " + dotnetLibPath);