Compare commits

...

1 Commits

Author SHA1 Message Date
Dustin Howett
635416ef5d HAX: what if we PRI-embed all resources? 2023-01-19 12:13:56 -06:00
4 changed files with 29 additions and 0 deletions

View File

@@ -164,6 +164,32 @@
</ItemGroup>
</Target>
<PropertyGroup>
<_GenerateProjectPriFileDependsOn>
_IReallyHateDoingThisCrap;$(_GenerateProjectPriFileDependsOn)
</_GenerateProjectPriFileDependsOn>
</PropertyGroup>
<Target Name="_IReallyHateDoingThisCrap" AfterTargets="GetPackagingOutputs">
<ItemGroup>
<!-- can't do this one; their PRI file contains an entry that overrides this resulting in a conflict
<_PackagingOutputsToConvertToEmbedded Include="@(PackagingOutputs)" Condition="'%(FileName)' == 'NoiseAsset_256X256_PNG'"/> -->
<_PackagingOutputsToConvertToEmbedded Include="@(PackagingOutputs)" Condition="('%(OutputGroup)' == 'ContentFilesProjectOutputGroup' or '%(OutputGroup)' == 'CustomOutputGroupForPackaging')
and '%(FileName)' != 'SmallTile.scale-100'
and '%(FileName)' != 'Square150x150Logo.scale-100'
and '%(FileName)' != 'Wide310x150Logo.scale-100'
and '%(FileName)' != 'LargeTile.scale-100'
and '%(FileName)' != 'Square44x44Logo.scale-100'
and '%(FileName)' != 'StoreLogo.scale-100'
"/>
<PackagingOutputs Remove="@(_PackagingOutputsToConvertToEmbedded)" />
<PackagingOutputs Include="@(_PackagingOutputsToConvertToEmbedded)">
<OutputGroup>EmbedOutputGroupForPackaging</OutputGroup>
<OngeAgainIHateIt>%(FileName)</OngeAgainIHateIt>
</PackagingOutputs>
</ItemGroup>
</Target>
<!-- This is required to get the package dependency in the AppXManifest. -->
<Import Project="$(OpenConsoleDir)src\common.nugetversions.targets" />

View File

@@ -20,6 +20,7 @@
-->
<CppWinRTNamespaceMergeDepth>3</CppWinRTNamespaceMergeDepth>
<XamlComponentResourceLocation>nested</XamlComponentResourceLocation>
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
</PropertyGroup>

View File

@@ -21,6 +21,7 @@
projects compile properly when they depend on this "Microsoft.winmd."
-->
<CppWinRTNamespaceMergeDepth>3</CppWinRTNamespaceMergeDepth>
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
</PropertyGroup>
<PropertyGroup Label="NuGet Dependencies">

View File

@@ -31,6 +31,7 @@
-->
<CppWinRTNamespaceMergeDepth>4</CppWinRTNamespaceMergeDepth>
<XamlComponentResourceLocation>nested</XamlComponentResourceLocation>
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
</PropertyGroup>
<PropertyGroup Label="NuGet Dependencies">
<TerminalCppWinrt>true</TerminalCppWinrt>