diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Coords/Coords.cs b/src/Assets/TestProjects/TestAppWithWinRTComponents/Coords/Coords.cs new file mode 100644 index 000000000000..3d4995c196a2 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Coords/Coords.cs @@ -0,0 +1,34 @@ +using System; + +namespace Coords +{ + public sealed class Coord + { + public double X; + public double Y; + + public Coord() + { + X = 0.0; + Y = 0.0; + } + + public Coord(double x, double y) + { + X = x; + Y = y; + } + + public double Distance(Coord dest) + { + double deltaX = (this.X - dest.X); + double deltaY = (this.Y - dest.Y); + return Math.Sqrt(deltaX * deltaX + deltaY * deltaY); + } + + public override string ToString() + { + return "(" + this.X + "," + this.Y + ")"; + } + } +} diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Coords/Coords.csproj b/src/Assets/TestProjects/TestAppWithWinRTComponents/Coords/Coords.csproj new file mode 100644 index 000000000000..d939e13e6a6e --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Coords/Coords.csproj @@ -0,0 +1,17 @@ + + + + net5.0-windows10.0.19041.0 + true + + $(RestoreSources); + ../local_nupkgs; + + + + + + + + + diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Managed/Managed.csproj b/src/Assets/TestProjects/TestAppWithWinRTComponents/Managed/Managed.csproj new file mode 100644 index 000000000000..4345cd07c888 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Managed/Managed.csproj @@ -0,0 +1,13 @@ + + + + Exe + net5.0-windows10.0.19041.0 + + + + + + + + diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Managed/Program.cs b/src/Assets/TestProjects/TestAppWithWinRTComponents/Managed/Program.cs new file mode 100644 index 000000000000..f2624b87e359 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Managed/Program.cs @@ -0,0 +1,23 @@ +using System; +using Coords; +using Posns; + +namespace Managed +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World!"); + Coord a = new Coord(); + Coord b = new Coord(39.0, 80.0); + Console.WriteLine("Managed code, testing coords: " + a.ToString() + " and " + b.ToString()); + Console.WriteLine("Coord distance was " + a.Distance(b)); + + Posn x = new Posn(); + Posn y = new Posn(39.0, 80.0); + Console.WriteLine("Managed code, testing posns: " + x.ToString() + " and " + y.ToString()); + Console.WriteLine("Posn distance was " + x.Distance(y)); + } + } +} diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.exe.manifest b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.exe.manifest new file mode 100644 index 000000000000..712b3074fa59 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.exe.manifest @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.rc b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.rc new file mode 100644 index 000000000000..6d285329154a Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.rc differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj new file mode 100644 index 000000000000..ed58147bc6ba --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj @@ -0,0 +1,136 @@ + + + + + true + true + true + true + 15.0 + {420c0b97-4c6f-4165-85e6-2cf62a81dc4d} + Win32Proj + Native + 10.0.19041.0 + 10.0.18362.0 + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + Application + v142 + v141 + v140 + Unicode + + + true + true + + + false + true + false + + + + + + + + + + + + + + + + Use + pch.h + $(IntDir)pch.pch + _CONSOLE;WIN32_LEAN_AND_MEAN;WINRT_LEAN_AND_MEAN;%(PreprocessorDefinitions) + Level4 + %(AdditionalOptions) /permissive- /bigobj + + + Windows + false + + + + + Disabled + _DEBUG;%(PreprocessorDefinitions) + + + + + WIN32;%(PreprocessorDefinitions) + + + + + MaxSpeed + true + true + NDEBUG;%(PreprocessorDefinitions) + + + true + true + + + + + + + + Create + + + + true + + + + + false + + + + + {93a19cdc-ca0d-41d2-add5-4d2bba83629f} + + + {189353b9-2806-42e6-b49c-90797e58ad44} + + + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj.filters b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj.filters new file mode 100644 index 000000000000..954809065a61 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj.filters @@ -0,0 +1,48 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Header Files + + + Header Files + + + + + Source Files + + + Source Files + + + + + + + + + + + + + + + Resource Files + + + \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj.user b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj.user new file mode 100644 index 000000000000..88a550947edb --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native_TemporaryKey.pfx b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native_TemporaryKey.pfx new file mode 100644 index 000000000000..30b96e1ebc24 Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/Native_TemporaryKey.pfx differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/PropertySheet.props b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/PropertySheet.props new file mode 100644 index 000000000000..e34141b019cc --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/PropertySheet.props @@ -0,0 +1,16 @@ + + + + + + + + \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/WinMain.cpp b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/WinMain.cpp new file mode 100644 index 000000000000..2db832a11bbf --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/WinMain.cpp @@ -0,0 +1,27 @@ +#include "pch.h" + +using namespace winrt; +using namespace Windows::Foundation; +using namespace Coords; +using namespace Posns; + +int __stdcall wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int) +{ + init_apartment(apartment_type::single_threaded); + + Coord a = Coord(); + Coord b = Coord(39.0, 80.0); + + std::wostringstream coordstringstream; + coordstringstream << L"Coord test: " << a.ToString().c_str() << L" and " << b.ToString().c_str() << L" --> " << a.Distance(b) << std::endl; + + ::MessageBoxW(::GetDesktopWindow(), coordstringstream.str().c_str(), L"C++/WinRT Desktop Application", MB_OK); + + Posn x = Posn(); + Posn y = Posn(39.0, 80.0); + + std::wostringstream posnstringstream; + posnstringstream << L"Posn test: " << x.ToString().c_str() << L" and " << y.ToString().c_str() << L" --> " << x.Distance(y) << std::endl; + + ::MessageBoxW(::GetDesktopWindow(), posnstringstream.str().c_str(), L"C++/WinRT Desktop Application", MB_OK); +} diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/packages.config b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/packages.config new file mode 100644 index 000000000000..880fba449e98 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/pch.cpp b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/pch.cpp new file mode 100644 index 000000000000..bcb5590be1b3 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/pch.cpp @@ -0,0 +1 @@ +#include "pch.h" diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/pch.h b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/pch.h new file mode 100644 index 000000000000..512fe6a26e4a --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/pch.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#ifdef GetCurrentTime +#undef GetCurrentTime +#endif +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/readme.txt b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/readme.txt new file mode 100644 index 000000000000..80cd2b7262f6 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/readme.txt @@ -0,0 +1,30 @@ +======================================================================== + C++/WinRT Native Project Overview +======================================================================== + +This project demonstrates how to get started consuming Windows Runtime +classes directly from standard C++, using platform projection headers +generated from Windows SDK metadata files. + +Steps to generate and consume SDK platform projection: +1. Build project initially to generate platform projection headers into + your Generated Files folder. +2. Include a projection namespace header in your pch.h, such as + . +3. Consume winrt namespace and any Windows Runtime namespaces, such as + winrt::Windows::Foundation, from source code. +4. Initialize apartment via init_apartment() and consume winrt classes. + +Steps to generate and consume a projection from third party metadata: +1. Add a WinMD reference by right-clicking the References project node + and selecting "Add Reference...". In the Add References dialog, + browse to the component WinMD you want to consume and add it. +2. Build the project once to generate projection headers for the + referenced WinMD file under the "Generated Files" subfolder. +3. As above, include projection headers in pch or source code + to consume projected Windows Runtime classes. + +======================================================================== +Learn more about C++/WinRT here: +http://aka.ms/cppwinrt/ +======================================================================== diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/resource.h b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/resource.h new file mode 100644 index 000000000000..5b37dd6a2b22 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Native/resource.h @@ -0,0 +1,13 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Posns/Posns.cs b/src/Assets/TestProjects/TestAppWithWinRTComponents/Posns/Posns.cs new file mode 100644 index 000000000000..1322ecbe3225 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Posns/Posns.cs @@ -0,0 +1,8 @@ +using System; + +namespace Posns +{ + public class Posns + { + } +} diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/Posns/Posns.csproj b/src/Assets/TestProjects/TestAppWithWinRTComponents/Posns/Posns.csproj new file mode 100644 index 000000000000..e864eca26c85 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/Posns/Posns.csproj @@ -0,0 +1,17 @@ + + + + net5.0-windows10.0.19041.0 + true + + $(RestoreSources); + ../local_nupkgs; + + + + + + + + + diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/TestAppWithWinRTComponents.sln b/src/Assets/TestProjects/TestAppWithWinRTComponents/TestAppWithWinRTComponents.sln new file mode 100644 index 000000000000..6b34158d684c --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/TestAppWithWinRTComponents.sln @@ -0,0 +1,79 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30114.105 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Native", "Native\Native.vcxproj", "{420C0B97-4C6F-4165-85E6-2CF62A81DC4D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Managed", "Managed\Managed.csproj", "{82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Coords", "Coords\Coords.csproj", "{93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Posns", "Posns\Posns.csproj", "{189353B9-2806-42E6-B49C-90797E58AD44}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "local_nupkgs", "local_nupkgs", "{79DD33CA-88E6-4231-AA7D-67B5B079A2B6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Debug|x64.ActiveCfg = Debug|x64 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Debug|x64.Build.0 = Debug|x64 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Debug|x86.ActiveCfg = Debug|Win32 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Debug|x86.Build.0 = Debug|Win32 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Release|Any CPU.ActiveCfg = Release|Win32 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Release|x64.ActiveCfg = Release|x64 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Release|x64.Build.0 = Release|x64 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Release|x86.ActiveCfg = Release|Win32 + {420C0B97-4C6F-4165-85E6-2CF62A81DC4D}.Release|x86.Build.0 = Release|Win32 + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Debug|x64.ActiveCfg = Debug|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Debug|x64.Build.0 = Debug|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Debug|x86.ActiveCfg = Debug|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Debug|x86.Build.0 = Debug|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Release|Any CPU.Build.0 = Release|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Release|x64.ActiveCfg = Release|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Release|x64.Build.0 = Release|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Release|x86.ActiveCfg = Release|Any CPU + {82B258DC-DB66-4D25-9DA7-75B5FE0E90A2}.Release|x86.Build.0 = Release|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Debug|x64.ActiveCfg = Debug|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Debug|x64.Build.0 = Debug|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Debug|x86.ActiveCfg = Debug|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Debug|x86.Build.0 = Debug|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Release|Any CPU.Build.0 = Release|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Release|x64.ActiveCfg = Release|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Release|x64.Build.0 = Release|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Release|x86.ActiveCfg = Release|Any CPU + {93A19CDC-CA0D-41D2-ADD5-4D2BBA83629F}.Release|x86.Build.0 = Release|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Debug|Any CPU.Build.0 = Debug|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Debug|x64.ActiveCfg = Debug|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Debug|x64.Build.0 = Debug|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Debug|x86.ActiveCfg = Debug|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Debug|x86.Build.0 = Debug|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Release|Any CPU.ActiveCfg = Release|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Release|Any CPU.Build.0 = Release|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Release|x64.ActiveCfg = Release|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Release|x64.Build.0 = Release|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Release|x86.ActiveCfg = Release|Any CPU + {189353B9-2806-42E6-B49C-90797E58AD44}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {AE1EBE6F-E3AC-4C4D-AF04-9D8769C6EDA0} + EndGlobalSection +EndGlobal diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/.nupkg.metadata b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/.nupkg.metadata new file mode 100644 index 000000000000..1ab010efe0fd --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/.nupkg.metadata @@ -0,0 +1,4 @@ +{ + "version": 1, + "contentHash": "Uzzjt6HrurdnDEB7T+qvff/Fl54iqCIEyK8uexQWFmyi2/Hl57HPldYXPHBqb3CNIJ6fnrca+UEDixrbe3/whw==" +} \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.1.3.2-prerelease.210721.8.nupkg b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.1.3.2-prerelease.210721.8.nupkg new file mode 100644 index 000000000000..68da0c574918 Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.1.3.2-prerelease.210721.8.nupkg differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.1.3.2-prerelease.210721.8.nupkg.sha512 b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.1.3.2-prerelease.210721.8.nupkg.sha512 new file mode 100644 index 000000000000..ff92aa1b671e --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.1.3.2-prerelease.210721.8.nupkg.sha512 @@ -0,0 +1 @@ +zyTHh/ndEkHJKKl/VcHY0PhGoGvuHVuQlvgxAk7VQlqWrQBrbrCiG4ANvnwMjcYGQkEW6JbpyHi2IlnFjcRItw== \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.nuspec b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.nuspec new file mode 100644 index 000000000000..0ece601bce9f --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/localfeed/microsoft.windows.cswinrt/1.3.2-prerelease.210721.8/microsoft.windows.cswinrt.nuspec @@ -0,0 +1,21 @@ + + + + Microsoft.Windows.CsWinRT + 1.3.2-prerelease.210721.8 + C#/WinRT Build Support + Microsoft + Microsoft + false + LICENSE + https://aka.ms/deprecateLicenseUrl + https://github.com/microsoft/cswinrt/tree/master/ + C#/WinRT provides packaged WinRT projection support for the C# language. It is compatible with .NET 5 and does not require any built-in knowledge of WinRT by the C# compiler. + + © Microsoft Corporation. All rights reserved. + managed C# WinRT cswinrt WinMD xlang + + + + + \ No newline at end of file diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/.signature.p7s b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/.signature.p7s new file mode 100644 index 000000000000..958aa04d45ec Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/.signature.p7s differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/LICENSE b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/LICENSE new file mode 100644 index 000000000000..9e841e7a26e4 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/Microsoft.Windows.CppWinRT.2.0.210722.2.nupkg b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/Microsoft.Windows.CppWinRT.2.0.210722.2.nupkg new file mode 100644 index 000000000000..a503a40de18a Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/Microsoft.Windows.CppWinRT.2.0.210722.2.nupkg differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/CppWinrtRules.Project.xml b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/CppWinrtRules.Project.xml new file mode 100644 index 000000000000..bd0efd57a812 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/CppWinrtRules.Project.xml @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/Microsoft.Windows.CppWinRT.props b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/Microsoft.Windows.CppWinRT.props new file mode 100644 index 000000000000..d7e2c652c26f --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/Microsoft.Windows.CppWinRT.props @@ -0,0 +1,66 @@ + + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + + + x64 + true + true + false + CppWinRT + true + + true + + PreventSdkUapPropsAssignment + true + + + + + false + stdcpp17 + + + true + $(IntDir)Unmerged\%(Filename).winmd + None + None + false + false + nul + nul + nul + nul + + + + + false + + + + false + + + + + + + + + diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/Microsoft.Windows.CppWinRT.targets b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/Microsoft.Windows.CppWinRT.targets new file mode 100644 index 000000000000..16d0b020dbb1 --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/Microsoft.Windows.CppWinRT.targets @@ -0,0 +1,888 @@ + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + + + normal + -verbose + $(OutDir)$(RootNamespace).winmd + $(IntDir)Merged\ + $(IntDir)Unmerged\ + true + false + true + false + true + false + $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)))..\..\ + $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory))) + $(CppWinRTParameters) -fastabi + "$(CppWinRTPackageDir)bin\" + "$(CppWinRTPackageDir)" + + + true + C++ + Windows.UI.Xaml + $(GeneratedFilesDir)XamlMetaDataProvider.idl + $(GeneratedFilesDir)XamlMetaDataProvider.cpp + + $(IntDir)$(MSBuildProjectFile).mdmerge.rsp + $(IntDir)$(MSBuildProjectFile).midlrt.rsp + $(IntDir)$(MSBuildProjectFile).cppwinrt_plat.rsp + $(IntDir)$(MSBuildProjectFile).cppwinrt_ref.rsp + $(IntDir)$(MSBuildProjectFile).cppwinrt_comp.rsp + + + + false + + false + true + true + true + + $(IntDir)Generated Files\ + + $(GeneratedFilesDir) + + $(WindowsSDK_MetadataPathVersioned) + + $(GeneratedFilesDir);$(CAExcludePath) + + + $(PrepareForBuildDependsOn); + CppWinRTVerifyKitVersion; + + + + $(BeforeMidlCompileTargets);CppWinRTAddXamlMetaDataProviderIdl; + + + $(ComputeMidlInputsTargets);CppWinRTComputeXamlGeneratedMidlInputs;CppWinRTSetMidlReferences; + + + $(AfterMidlTargets); + GetCppWinRTMdMergeInputs; + CppWinRTMergeProjectWinMDInputs; + CppWinRTGetResolvedWinMD; + CppWinRTCopyWinMDToOutputDirectory; + + + $(ResolveReferencesDependsOn); + CppWinRTImplicitlyExpandTargetPlatform + + + $(ResolveAssemblyReferencesDependsOn);GetCppWinRTProjectWinMDReferences;CppWinRTMarkStaticLibrariesPrivate; + + + + $(BeforeClCompileTargets);CppWinRTAddXamlMetaDataProviderCpp;CppWinRTMakeProjections; + + + + + CppWinRTComputeXamlGeneratedCompileInputs;$(ComputeCompileInputsTargets);CppWinRTHeapEnforcementOptOut; + + + + $(MarkupCompilePass1DependsOn);CppWinRTAddXamlReferences + + + $(MarkupCompilePass2DependsOn);CppWinRTSetXamlLocalAssembly + + + $(CleanDependsOn);CppWinRTClean + + + $(GetTargetPathDependsOn);CppWinRTGetResolvedWinMD + + + $(GetPackagingOutputsDependsOn);CppWinRTGetResolvedWinMD + + + + + + + false + + + + + <_CppWinRT_RS4OrGreater>false + <_CppWinRT_RS4OrGreater Condition="'$(TargetPlatformVersion)' >= '10.0.17134.0'">true + + + + + + + <_FilesToDelete Remove="@(_FilesToDelete)"/> + <_FilesToDelete Include="$(GeneratedFilesDir)**"/> + <_FilesToDelete Include="$(CppWinRTMergedDir)**"/> + <_FilesToDelete Include="$(CppWinRTUnmergedDir)**"/> + <_FilesToDelete Include="$(CppWinRTProjectWinMD)"/> + + + + + + + + %(ClCompile.AdditionalOptions) /DWINRT_NO_MAKE_DETECTION + + + + + + + + + <_TargetPlatformWinMDs Condition="'$(TargetPlatformSdkRootOverride)' != ''" Include="$(TargetPlatformSdkRootOverride)\References\$(XeWin10TargetVersion)\**\*.winmd"> + true + false + $(TargetPlatformMoniker) + $(TargetPlatformDisplayName) + CppWinRTImplicitlyExpandTargetPlatform + True + + <_TargetPlatformWinMDs Condition="'$(TargetPlatformSdkRootOverride)' == ''" Include="$(WindowsSDK_MetadataPathVersioned)\**\*.winmd"> + true + false + $(TargetPlatformMoniker) + $(TargetPlatformDisplayName) + CppWinRTImplicitlyExpandTargetPlatform + True + + + + + + + + + + <_ResolveAssemblyReferenceResolvedFiles Include="@(_TargetPlatformWinMDs)" /> + + + <_TargetPlatformWinMDs Remove="@(_TargetPlatformWinMDs)" /> + + + + + + + + + true + true + + + false + + + + + + + + + + + + + + + + + <_CppWinRTProjectWinMDItems Include="$(CppWinRTProjectWinMD)" /> + + + $([System.IO.Path]::GetFileName('$(CppWinRTProjectWinMD)')) + true + $(WinMDImplementationPath)$(TargetName)$(TargetExt) + winmd + true + $(MSBuildProjectName) + $(ConfigurationType) + + + <_CppWinRTProjectWinMDItems Remove="$(CppWinRTProjectWinMD)" /> + + + + + + + + + <_ResolvedProjectReferencePaths Condition="'%(_ResolvedProjectReferencePaths.ProjectType)' == 'StaticLibrary'"> + false + + + + + + + + <_CppWinRTPlatformWinMDInputs Remove="@(_CppWinRTPlatformWinMDInputs)" /> + <_CppWinRTPlatformWinMDInputs Include="@(CppWinRTPlatformWinMDReferences)" /> + + %(FullPath) + + + + + + + + + <_CppWinRTPlatformWinMDReferences Remove="@(_CppWinRTPlatformWinMDReferences)" /> + <_CppWinRTPlatformWinMDReferences Include="@(ReferencePath)" Condition="'%(ReferencePath.IsSystemReference)' == 'true' and '%(ReferencePath.WinMDFile)' == 'true' and '%(ReferencePath.ReferenceSourceTarget)' == 'ResolveAssemblyReference'" /> + + <_CppWinRTPlatformWinMDReferences Include="@(ReferencePath)" Condition="'%(ReferencePath.IsSystemReference)' == 'true' and '%(ReferencePath.WinMDFile)' == 'true' and '%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandTargetPlatform'" /> + + <_CppWinRTPlatformWinMDReferences Include="@(ReferencePath)" Condition="'%(ReferencePath.IsSystemReference)' == 'true' and '%(ReferencePath.WinMDFile)' == 'true' and '%(ReferencePath.ResolvedFrom)' == 'CppWinRTImplicitlyExpandTargetPlatform'" /> + <_CppWinRTPlatformWinMDReferences Include="$(CppWinRTSDKReferences)" /> + + + %(FullPath) + + + + + + + + + <_CppWinRTDirectWinMDReferences Remove="@(_CppWinRTDirectWinMDReferences)" /> + <_CppWinRTDirectWinMDReferences Include="@(ReferencePath)" Condition="'%(ReferencePath.IsSystemReference)' != 'true' and '%(ReferencePath.WinMDFile)' == 'true' and '%(ReferencePath.ReferenceSourceTarget)' == 'ResolveAssemblyReference'" /> + <_CppWinRTDirectWinMDReferences Include="@(ReferencePath)" Condition="'%(ReferencePath.WinMDFile)' == 'true' and '%(ReferencePath.ReferenceSourceTarget)' == 'ExpandSDKReference'" /> + + + %(FullPath) + + + + + + + + + + <_CppWinRTStaticProjectReferences Remove="@(_CppWinRTStaticProjectReferences)"/> + <_CppWinRTStaticProjectReferences Include="@(_ResolvedProjectReferencePaths)" + Condition= "'%(_ResolvedProjectReferencePaths.ProjectType)'=='StaticLibrary' AND + '%(_ResolvedProjectReferencePaths.WinMDFile)' == 'true'"/> + + <_CppWinRTDynamicProjectReferences Remove="@(_CppWinRTDynamicProjectReferences)"/> + <_CppWinRTDynamicProjectReferences Include="@(_ResolvedProjectReferencePaths)" + Condition= "'%(_ResolvedProjectReferencePaths.ProjectType)'!='StaticLibrary' AND + ('%(_ResolvedProjectReferencePaths.WinMDFile)' == 'true' OR + ('%(_ResolvedProjectReferencePaths.WinMDFile)' == '' AND '%(_ResolvedProjectReferencePaths.Extension)' == '.winmd'))"/> + + + + + %(FullPath) + + + + %(FullPath) + + + + + + + + + + + + <_MdMergeInputs Remove="@(_MdMergeInputs)"/> + <_MdMergeInputs Include="@(Midl)"> + %(Midl.OutputDirectory)%(Midl.MetadataFileName) + $(CppWinRTProjectWinMD) + + + <_MdMergeInputs Include="@(CppWinRTStaticProjectWinMDReferences)" Condition="'$(ConfigurationType)' != 'StaticLibrary'"> + $(CppWinRTProjectWinMD) + + <_MdMergeReferences Remove="@(_MdMergeReferences)" /> + + <_MdMergeReferences Include="@(CppWinRTStaticProjectWinMDReferences)" Condition="'$(ConfigurationType)' == 'StaticLibrary'" /> + <_MdMergeReferences Include="@(CppWinRTDirectWinMDReferences)" /> + <_MdMergeReferences Include="@(CppWinRTDynamicProjectWinMDReferences)" /> + <_MdMergeReferences Include="@(CppWinRTPlatformWinMDReferences)" /> + + + + + + + + + + + + + + <_DisableReferences>false + <_DisableReferences Condition="('$(CppWinRTOverrideSDKReferences)' != 'true') and ('$(TargetPlatformVersion)' < '10.0.18310.0')">true + + + + + + >true + + + + + + + + + + + XamlGenerated + + + + + + + + <_DisableReferences>false + <_DisableReferences Condition="('$(CppWinRTOverrideSDKReferences)' != 'true') and ('$(TargetPlatformVersion)' < '10.0.18310.0')">true + [$(XamlNamespace).Markup.FullXamlMetadataProvider] + import "$(XamlNamespace).Markup.idl"%3b + +// This file is generated by the build to support Xaml apps +$(XamlMarkupIdlImport) +namespace $(RootNamespace) +{ + $(FullXamlMetadataProviderAttribute)runtimeclass XamlMetaDataProvider : [default] $(XamlNamespace).Markup.IXamlMetadataProvider + { + XamlMetaDataProvider()%3b + } +} + + + + + + + + + + <_PCH>@(ClCompile->Metadata('PrecompiledHeaderFile')->Distinct()) + #include "$(_PCH)" + +// This file is generated by the build to support Xaml apps +$(XamlMetaDataProviderPch) +#include "XamlMetaDataProvider.h" +#include "XamlMetaDataProvider.g.cpp" + + + + + + + + + + <_MidlReferences Remove="@(_MidlReferences)"/> + <_MidlReferences Include="@(CppWinRTDirectWinMDReferences)"/> + <_MidlReferences Include="@(CppWinRTStaticProjectWinMDReferences)"/> + <_MidlReferences Include="@(CppWinRTDynamicProjectWinMDReferences)"/> + <_MidlReferences Include="@(CppWinRTPlatformWinMDReferences)"/> + <_MidlReferencesDistinct Remove="@(_MidlReferencesDistinct)" /> + <_MidlReferencesDistinct Include="@(_MidlReferences->'%(WinMDPath)'->Distinct())" /> + + %(Midl.AdditionalOptions) %40"$(CppWinRTMidlResponseFile)" + + + + <_MidlrtParameters>@(_MidlReferencesDistinct->'/reference "%(WinMDPath)"',' ') + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_MdMergeDepth Condition="'$(CppWinRTNamespaceMergeDepth)' != ''">-n:$(CppWinRTNamespaceMergeDepth) + <_MdMergeDepth Condition="'$(_MdMergeDepth)' == ''">$(CppWinRTMergeDepth) + <_MdMergeDepth Condition="'$(_MdMergeDepth)' == '' And '$(CppWinRTRootNamespaceAutoMerge)' == 'true'">-n:$(RootNamespace.Split('.').length) + <_MdMergeDepth Condition="'$(_MdMergeDepth)' == '' And ('@(Page)' != '' Or '@(ApplicationDefinition)' != '')">-n:1 + <_MdMergeCommand>$(MdMergePath)mdmerge %40"$(CppWinRTMdMergeResponseFile)" + + + + <_MdMergeParameters Condition="'$(CppWinRTMergeNoValidate)'!='true'">-v + <_MdMergeParameters>$(_MdMergeParameters) @(CppWinRTMdMergeMetadataDirectories->'-metadata_dir "%(RelativeDir)."', ' ') + <_MdMergeParameters>$(_MdMergeParameters) @(CppWinRTMdMergeInputs->'-i "%(Identity)"', ' ') + <_MdMergeParameters>$(_MdMergeParameters) -o "$(CppWinRTMergedDir.TrimEnd('\'))" -partial $(_MdMergeDepth) + + + + + + + + + + + <_MdMergedOutput Remove="@(_MdMergedOutput)"/> + <_MdMergedOutput Include="$(CppWinRTMergedDir)*.winmd"/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $(CppWinRTPath)cppwinrt %40"$(CppWinRTPlatformProjectionResponseFile)" + + + <_CppwinrtInputs Remove="@(_CppwinrtInputs)"/> + <_CppwinrtInputs Include="@(CppWinRTPlatformWinMDInputs)"/> + + + <_CppwinrtParameters>$(CppWinRTCommandVerbosity) $(CppWinRTParameters) + <_CppwinrtParameters>$(_CppwinrtParameters) @(_CppwinrtInputs->'-in "%(WinMDPath)"', ' ') + <_CppwinrtParameters>$(_CppwinrtParameters) -out "$(GeneratedFilesDir)." + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $(CppWinRTPath)cppwinrt %40"$(CppWinRTReferenceProjectionResponseFile)" + + + <_CppwinrtRefInputs Remove="@(_CppwinrtRefInputs)"/> + <_CppwinrtRefInputs Include="@(CppWinRTDirectWinMDReferences)"/> + <_CppwinrtRefInputs Include="@(CppWinRTDynamicProjectWinMDReferences)"/> + <_CppwinrtRefRefs Remove="@(_CppwinrtRefRefs)"/> + <_CppwinrtRefRefs Include="@(CppWinRTPlatformWinMDReferences)"/> + + + <_CppwinrtParameters>$(CppWinRTCommandVerbosity) $(CppWinRTParameters) + <_CppwinrtParameters>$(_CppwinrtParameters) @(_CppwinrtRefInputs->'-in "%(WinMDPath)"', ' ') + <_CppwinrtParameters>$(_CppwinrtParameters) @(_CppwinrtRefRefs->'-ref "%(WinMDPath)"', ' ') + <_CppwinrtParameters>$(_CppwinrtParameters) -out "$(GeneratedFilesDir)." + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_PCH>@(ClCompile->Metadata('PrecompiledHeaderFile')->Distinct()) + + + + true + $(_PCH) + + + -prefix + -pch $(CppWinRTPrecompiledHeader) + $(CppWinRTPath)cppwinrt %40"$(CppWinRTComponentProjectionResponseFile)" + + + + <_MdMergedOutput Remove="@(_MdMergedOutput)"/> + <_MdMergedOutput Include="$(CppWinRTMergedDir)*.winmd"/> + <_CppwinrtCompInputs Remove="@(_CppwinrtCompInputs)"/> + <_CppwinrtCompInputs Include="@(_MdMergedOutput)"> + %(_MdMergedOutput.FullPath) + + + <_CppwinrtCompInputs Include="@(CppWinRTStaticProjectWinMDReferences)" Condition="'$(ConfigurationType)' == 'StaticLibrary'"> + %(CppWinRTStaticProjectWinMDReferences.FullPath) + + <_CppwinrtCompRefs Remove="@(_CppwinrtCompRefs)"/> + <_CppwinrtCompRefs Include="@(CppWinRTDirectWinMDReferences)"/> + <_CppwinrtCompRefs Include="@(CppWinRTDynamicProjectWinMDReferences)"/> + <_CppwinrtCompRefs Include="@(CppWinRTPlatformWinMDReferences)"/> + + + <_CppwinrtParameters>$(CppWinRTCommandVerbosity) $(CppWinRTParameters) -overwrite -name $(RootNamespace) $(CppWinRTCommandPrecompiledHeader) $(CppWinRTCommandUsePrefixes) -comp "$(GeneratedFilesDir)sources" + <_CppwinrtParameters Condition="'$(CppWinRTOptimized)'=='true'">$(_CppwinrtParameters) -opt + <_CppwinrtParameters>$(_CppwinrtParameters) @(_CppwinrtCompInputs->'-in "%(WinMDPath)"', ' ') + <_CppwinrtParameters>$(_CppwinrtParameters) @(_CppwinrtCompRefs->'-ref "%(WinMDPath)"', ' ') + <_CppwinrtParameters>$(_CppwinrtParameters) -out "$(GeneratedFilesDir)." + + + + + + + + + + + + + + + + + + + + + + + + + + $(CppWinRTProjectWinMD) + + + + + + + %(AdditionalOptions) /bigobj + %(AdditionalOptions) /await + %(AdditionalIncludeDirectories);$(GeneratedFilesDir) + + + $(WindowsSDK_MetadataFoundationPath);%(AdditionalMetadataDirectories) + $(WindowsSDK_MetadataPath);%(AdditionalMetadataDirectories) + %(AdditionalOptions) /nomidl + + + %(AdditionalDependencies);WindowsApp.lib + %(AdditionalDependencies);$(CppWinRTPackageDir)build\native\lib\$(Platform)\cppwinrt_fast_forwarder.lib + + + + diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/arm/cppwinrt_fast_forwarder.lib b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/arm/cppwinrt_fast_forwarder.lib new file mode 100644 index 000000000000..dbbab04fdfcb Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/arm/cppwinrt_fast_forwarder.lib differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/arm64/cppwinrt_fast_forwarder.lib b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/arm64/cppwinrt_fast_forwarder.lib new file mode 100644 index 000000000000..4267e36871cb Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/arm64/cppwinrt_fast_forwarder.lib differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/win32/cppwinrt_fast_forwarder.lib b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/win32/cppwinrt_fast_forwarder.lib new file mode 100644 index 000000000000..f66d8681da51 Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/win32/cppwinrt_fast_forwarder.lib differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/x64/cppwinrt_fast_forwarder.lib b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/x64/cppwinrt_fast_forwarder.lib new file mode 100644 index 000000000000..dba5386450fb Binary files /dev/null and b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/build/native/lib/x64/cppwinrt_fast_forwarder.lib differ diff --git a/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/readme.txt b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/readme.txt new file mode 100644 index 000000000000..049ab13b8f5a --- /dev/null +++ b/src/Assets/TestProjects/TestAppWithWinRTComponents/packages/Microsoft.Windows.CppWinRT.2.0.210722.2/readme.txt @@ -0,0 +1,22 @@ +======================================================================== +The Microsoft.Windows.CppWinRT NuGet package automatically generates C++/WinRT projection headers, +enabling you to both consume and produce Windows Runtime classes. +======================================================================== + +C++/WinRT detects Windows metadata required by the project, from: +* Platform winmd files in the SDK (both MSI and NuGet) +* NuGet package references containing winmd files +* Other project references producing winmd files +* Raw winmd file references +* Interface definition language (IDL) files in the project + +For any winmd file discovered above, C++/WinRT creates reference (consuming) projection headers. +Client code can simply #include these headers, which are created in the generated files directory (see below). + +For any IDL file contained in the project, C++/WinRT creates component (producing) projection headers. +In addition, C++/WinRT generates templates and skeleton implementations for each runtime class, under the Generated Files directory. + +======================================================================== +For more information, visit: +https://github.com/Microsoft/cppwinrt/tree/master/nuget +========================================================================