diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2019-02-01 17:40:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-02-01 18:04:52 (GMT) |
commit | cff026dbc01f975857236a11fc033af48b5e130a (patch) | |
tree | b9d95dad15a93df1bc6f41084731451893c88a6e /Tests/VSWinStorePhone/WinRT/Batman.cpp | |
parent | 6c21722adbc1745b6362ca9501692805c19eb8ac (diff) | |
download | CMake-cff026dbc01f975857236a11fc033af48b5e130a.zip CMake-cff026dbc01f975857236a11fc033af48b5e130a.tar.gz CMake-cff026dbc01f975857236a11fc033af48b5e130a.tar.bz2 |
VS: Fix WinRT component references
WinRT components need to be referenced in a similar way that managed
code libraries are referenced. Validate that the library reference is a
WinRT component and reference it through the project.
Add test coverage for `VS_WINRT_COMPONENT`. While at it, fix the IOT
reference failing on Win10 SDK 17763 which doesn't include it anymore.
Fixes: #18846
Diffstat (limited to 'Tests/VSWinStorePhone/WinRT/Batman.cpp')
-rw-r--r-- | Tests/VSWinStorePhone/WinRT/Batman.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/VSWinStorePhone/WinRT/Batman.cpp b/Tests/VSWinStorePhone/WinRT/Batman.cpp new file mode 100644 index 0000000..e092258 --- /dev/null +++ b/Tests/VSWinStorePhone/WinRT/Batman.cpp @@ -0,0 +1,14 @@ +#include "Batman.h" + +using namespace JusticeLeagueWinRT; +using namespace Platform; + +Batman::Batman() +{ +} + +void Batman::savePeople() +{ + int i = 0; + i++; +} |