From 005b8cc5e0c655e89db78dd35fb688da6b8e0a6f Mon Sep 17 00:00:00 2001 From: John Stephens Date: Fri, 26 Mar 2021 09:10:57 -0700 Subject: [PATCH] Link to WinMM.Lib for PlaySound with 19041 (#9624) The PlaySound functions were removed from OneCoreUAP_apiset.Lib in Windows 10 SDK 19041 because they did not actually belong there. Link to WinMM.Lib for PlaySoundW. ### Validation Steps Performed * Built for x64 from repository root with: `MSBuild.exe -property:TargetPlatformVersion=10.0.19041.0` * Installed CascadiaPackage_0.0.1.0_x64_Debug.msix and launched on 19042.867 --- src/cascadia/TerminalApp/dll/TerminalApp.vcxproj | 2 +- src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj | 2 +- src/host/exe/Host.EXE.vcxproj | 1 + src/host/ut_host/Host.UnitTests.vcxproj | 3 +++ .../Interactivity.Win32.UnitTests.vcxproj | 3 +++ 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/cascadia/TerminalApp/dll/TerminalApp.vcxproj b/src/cascadia/TerminalApp/dll/TerminalApp.vcxproj index c1ed497580f..6b7d2df3aa5 100644 --- a/src/cascadia/TerminalApp/dll/TerminalApp.vcxproj +++ b/src/cascadia/TerminalApp/dll/TerminalApp.vcxproj @@ -104,7 +104,7 @@ $(OpenConsoleDir)\dep\jsoncpp\json;%(AdditionalIncludeDirectories); - User32.lib;WindowsApp.lib;shell32.lib;%(AdditionalDependencies) + User32.lib;WindowsApp.lib;shell32.lib;WinMM.Lib;%(AdditionalDependencies) /INCLUDE:_DllMain@12 /INCLUDE:DllMain diff --git a/src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj b/src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj index 59a1b747b3e..a2f900ef749 100644 --- a/src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj +++ b/src/cascadia/UnitTests_TerminalCore/UnitTests.vcxproj @@ -92,7 +92,7 @@ pch.h - WindowsApp.lib;%(AdditionalDependencies) + WindowsApp.lib;WinMM.Lib;%(AdditionalDependencies) diff --git a/src/host/exe/Host.EXE.vcxproj b/src/host/exe/Host.EXE.vcxproj index ca5cd3f8655..42bafc2ab30 100644 --- a/src/host/exe/Host.EXE.vcxproj +++ b/src/host/exe/Host.EXE.vcxproj @@ -84,6 +84,7 @@ true + WinMM.Lib;%(AdditionalDependencies) diff --git a/src/host/ut_host/Host.UnitTests.vcxproj b/src/host/ut_host/Host.UnitTests.vcxproj index 98fe1dc3abb..486965b2fb9 100644 --- a/src/host/ut_host/Host.UnitTests.vcxproj +++ b/src/host/ut_host/Host.UnitTests.vcxproj @@ -102,6 +102,9 @@ ..;$(SolutionDir)src\inc;$(SolutionDir)src\inc\test;%(AdditionalIncludeDirectories) + + WinMM.Lib;%(AdditionalDependencies) + diff --git a/src/interactivity/win32/ut_interactivity_win32/Interactivity.Win32.UnitTests.vcxproj b/src/interactivity/win32/ut_interactivity_win32/Interactivity.Win32.UnitTests.vcxproj index 293e04a2153..2330bee3aa6 100644 --- a/src/interactivity/win32/ut_interactivity_win32/Interactivity.Win32.UnitTests.vcxproj +++ b/src/interactivity/win32/ut_interactivity_win32/Interactivity.Win32.UnitTests.vcxproj @@ -69,6 +69,9 @@ ..;$(SolutionDir)src\inc;$(Solutiondir)src\inc\test;%(AdditionalIncludeDirectories) + + WinMM.Lib;%(AdditionalDependencies) +