Fix C# bindings for Editor for Window build on Linux

This commit is contained in:
Wojciech Figat
2021-12-02 13:29:23 +01:00
parent 653c209567
commit 3e2956a7bf

View File

@@ -65,7 +65,7 @@ public class Editor : EditorModule
AddPlatformTools(options, platformToolsRoot, platformToolsRootExternal, "Linux", "PLATFORM_TOOLS_LINUX");
// Visual Studio integration
if (options.Platform.Target == TargetPlatform.Windows)
if (options.Platform.Target == TargetPlatform.Windows && Flax.Build.Platform.BuildTargetPlatform == TargetPlatform.Windows)
{
var path = Registry.GetValue("HKEY_CLASSES_ROOT\\TypeLib\\{80CC9F66-E7D8-4DDD-85B6-D9E6CD0E93E2}\\8.0\\0\\win32", null, null) as string;
if (path != null && File.Exists(path))