Fix building bindings-only cross-platform with dotnet7
This commit is contained in:
2
Source/ThirdParty/nethost/nethost.Build.cs
vendored
2
Source/ThirdParty/nethost/nethost.Build.cs
vendored
@@ -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}.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user