Fix opening native code projects with VS2022 for compatibility with console-plugins

This commit is contained in:
2026-07-15 23:24:30 +02:00
parent 75e11b4323
commit 9b89501293
@@ -33,6 +33,8 @@ namespace Flax.Build.Projects.VisualStudio
var gen = (VisualStudioProjectGenerator)Generator;
var projectFileToolVersion = gen.ProjectFileToolVersion;
if (projectFileToolVersion == "18.0")
projectFileToolVersion = "17.0"; // Downgrade minimum to Visual Studio 2022 for better compatibility with console-plugins
var vcProjectFileContent = new StringBuilder();
vcProjectFileContent.AppendLine("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
vcProjectFileContent.AppendLine(string.Format("<Project DefaultTargets=\"Build\" ToolsVersion=\"{0}\" xmlns=\"http://schemas.microsoft.com/developer/msbuild/2003\">", projectFileToolVersion));