From d2b9952f7aedfd982ecc8139526ec72c74ba9841 Mon Sep 17 00:00:00 2001 From: reuk Date: Fri, 9 Jan 2026 12:52:17 +0000 Subject: [PATCH] Projucer: Avoid enabling legacy coroutine support for projects that depend on Windows MIDI Services A dependency on CppWinRT will add the /await flag to our command line flags unless we explicitly opt-out. /await is deprecated in Visual Studio 2026. --- .../Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h index 12a16731d3..52d0a09f34 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h @@ -922,6 +922,9 @@ public: auto* globals = projectXml.createNewChildElement ("PropertyGroup"); globals->setAttribute ("Label", "Globals"); globals->createNewChildElement ("ProjectGuid")->addTextElement (getProjectGuid()); + + if (owner.shouldAddMidiPackage()) + globals->createNewChildElement ("CppWinRTEnableLegacyCoroutines")->addTextElement ("false"); } {