Fix building bindings-only cross-platform with dotnet7

This commit is contained in:
Wojtek Figat
2023-04-18 20:25:06 +02:00
parent ca48d60627
commit 644eb35b97
4 changed files with 9 additions and 5 deletions

View File

@@ -39,6 +39,8 @@ public class nethost : ThirdPartyModule
return; // Ignore missing Host Runtime when engine is already prebuilt
if (options.Flags.HasFlag(BuildFlags.GenerateProject))
return; // Ignore missing Host Runtime at projects evaluation stage (not important)
if (Configuration.BuildBindingsOnly)
return; // Ignore missing Host Runtime when just building C# bindings (without native code)
throw new Exception($"Missing NET SDK runtime for {options.Platform.Target} {options.Architecture}.");
}