From 99ce5cd4d485d7906e1ee5100949b3d1e2275f92 Mon Sep 17 00:00:00 2001 From: Wojciech Figat Date: Mon, 16 Jan 2023 13:33:36 +0100 Subject: [PATCH] Fix for Visual Studio projects when using vs2022 --- .../Flax.Build/Projects/VisualStudio/CSProjectGenerator.cs | 2 ++ .../Flax.Build/Projects/VisualStudio/VCProjectGenerator.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Source/Tools/Flax.Build/Projects/VisualStudio/CSProjectGenerator.cs b/Source/Tools/Flax.Build/Projects/VisualStudio/CSProjectGenerator.cs index a3d70997b..266097a3f 100644 --- a/Source/Tools/Flax.Build/Projects/VisualStudio/CSProjectGenerator.cs +++ b/Source/Tools/Flax.Build/Projects/VisualStudio/CSProjectGenerator.cs @@ -81,6 +81,8 @@ namespace Flax.Build.Projects.VisualStudio csProjectFileContent.AppendLine(" 7.3"); csProjectFileContent.AppendLine(" 512"); csProjectFileContent.AppendLine(" "); + if (Version >= VisualStudioVersion.VisualStudio2022) + csProjectFileContent.AppendLine(" false"); csProjectFileContent.AppendLine(" "); diff --git a/Source/Tools/Flax.Build/Projects/VisualStudio/VCProjectGenerator.cs b/Source/Tools/Flax.Build/Projects/VisualStudio/VCProjectGenerator.cs index 177220585..deed99bd7 100644 --- a/Source/Tools/Flax.Build/Projects/VisualStudio/VCProjectGenerator.cs +++ b/Source/Tools/Flax.Build/Projects/VisualStudio/VCProjectGenerator.cs @@ -103,6 +103,8 @@ namespace Flax.Build.Projects.VisualStudio vcProjectFileContent.AppendLine(" Native"); vcProjectFileContent.AppendLine(" Unicode"); vcProjectFileContent.AppendLine(" MakeFileProj"); + if (Version >= VisualStudioVersion.VisualStudio2022) + vcProjectFileContent.AppendLine(" false"); vcProjectFileContent.AppendLine(" "); // Default properties