Skip to content

Commit 53efb1a

Browse files
Fix building WinRT tests on new Windows SDK (with new cppwinrt). (#34513) (#34585)
Co-authored-by: Jeremy Koritzinsky <jekoritz@microsoft.com>
1 parent d546de7 commit 53efb1a

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

src/coreclr/tests/src/Interop/WinRT/NativeComponent/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ include ("${CLR_INTEROP_TEST_ROOT}/Interop.cmake")
44
include_directories("../Contracts")
55
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
66

7+
add_compile_definitions(WINRT_NO_MAKE_DETECTION)
8+
79
set(SOURCES
810
Component.Contracts.ArrayTesting.cpp
911
Component.Contracts.BindingProjectionsTesting.cpp

src/coreclr/tests/src/Interop/WinRT/NativeComponent/Component.Contracts.BindingViewModel.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#pragma once
55

66
#include "Component/Contracts/BindingViewModel.g.h"
7+
#include "winrt/Windows.Foundation.Collections.h"
8+
#include "winrt/Windows.UI.Xaml.Interop.h"
79
#include <vector>
810

911
template<typename T>

src/coreclr/tests/src/Interop/WinRT/NativeComponent/Component.Contracts.KeyValuePairTesting.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44
#include "pch.h"
55
#include "Component.Contracts.KeyValuePairTesting.h"
6+
#include "winrt/Windows.Foundation.Collections.h"
67
#include <utility>
78
#include <vector>
89

src/coreclr/tests/src/Interop/WinRT/NativeComponent/Component.Contracts.NullableTesting.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// See the LICENSE file in the project root for more information.
44
#include "pch.h"
55
#include "Component.Contracts.NullableTesting.h"
6+
#include "winrt/Windows.Foundation.h"
7+
68

79
namespace winrt::Component::Contracts::implementation
810
{

src/coreclr/tests/src/Interop/WinRT/NativeComponent/Component.Contracts.UriTesting.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44
#include "pch.h"
55
#include "Component.Contracts.UriTesting.h"
6+
#include "winrt/Windows.Foundation.h"
67

78
namespace winrt::Component::Contracts::implementation
89
{

0 commit comments

Comments
 (0)