Skip to content

Commit 9f2eb8f

Browse files
authored
Merge pull request #6849 from keveleigh/update-wsaplayer-template
Update WSA.Player.Template.props.template to reference the DotNetWinRT adapter
2 parents 0f0a2ec + 1af8ed2 commit 9f2eb8f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Assets/MixedRealityToolkit.Tools/MSBuild/MSBuildMRTKTemplates/WSA.Player.Template.props.template

+11-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<AssemblySearchPaths>$(AssemblySearchPaths);<!--PLATFORM_COMMON_ASSEMBLY_SEARCH_PATHS_TOKEN-->;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5;$(UnityEditorInstallFolder)Data\PlaybackEngines\MetroSupport\Managed\UAP\</AssemblySearchPaths>
44
<TargetFramework>uap10.0</TargetFramework>
55
<DefaultLanguage>en-US</DefaultLanguage>
6-
<DefineConstants>$(DefineConstants);<!--PLATFORM_COMMON_DEFINE_CONSTANTS-->;NETFX_CORE;WINDOWS_UWP</DefineConstants>
6+
<DefineConstants>$(DefineConstants);<!--PLATFORM_COMMON_DEFINE_CONSTANTS-->;NETFX_CORE;WINDOWS_UWP;DOTNETWINRT_PRESENT</DefineConstants>
77
<NugetTargetMoniker>UAP,Version=v10.0</NugetTargetMoniker>
88
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
99
<TargetPlatformVersion><!--UWP_TARGET_PLATFORM_VERSION_TOKEN--></TargetPlatformVersion>
@@ -49,4 +49,14 @@
4949
</Reference>
5050
<!--PLATFORM_COMMON_REFERENCE_TEMPLATE_END-->
5151
</ItemGroup>
52+
53+
<PropertyGroup>
54+
<DotNetWinRTVersion>0.5.1037</DotNetWinRTVersion>
55+
</PropertyGroup>
56+
<ItemGroup>
57+
<PackageReference Include="Microsoft.Windows.MixedReality.DotNetWinRT" Version="$(DotNetWinRTVersion)" ExcludeAssets="Compile" />
58+
<Reference Include="Microsoft.Windows.MixedReality.DotNetWinRT">
59+
<HintPath>$(NuGetPackageRoot)\microsoft.windows.mixedreality.dotnetwinrt\$(DotNetWinRTVersion)\lib\uap10.0.18362\Microsoft.Windows.MixedReality.DotNetWinRT.dll</HintPath>
60+
</Reference>
61+
</ItemGroup>
5262
</Project>

0 commit comments

Comments
 (0)