Set the ComponentResourceLocation for our DLL projects (#5031)
These projects load Xaml components that have Uids, but those Uids just weren't working because Xaml components are, by default, loaded in "Application" scope. Application scope is great if the resource producer is the EXE project. Application scope means that resources are looked up at the resource root, but DLLs with resources don't produce resources at the root. They produce resources at a root named after the DLL. Setting the Xaml component resource location to Nested makes sure the Xaml resource loader loads resources from the right places.
This commit is contained in:
parent
5672636568
commit
1e57dde30b
|
@ -22,6 +22,7 @@
|
|||
When we do this, the XBF ends up in resources.pri.
|
||||
-->
|
||||
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
|
||||
<XamlComponentResourceLocation>nested</XamlComponentResourceLocation>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\..\..\common.openconsole.props" Condition="'$(OpenConsoleDir)'==''" />
|
||||
<Import Project="$(OpenConsoleDir)src\cppwinrt.build.pre.props" />
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
the default OutDir up one level, so the wapproj will be able to find it.
|
||||
-->
|
||||
<NoOutputRedirection>true</NoOutputRedirection>
|
||||
<XamlComponentResourceLocation>nested</XamlComponentResourceLocation>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="..\..\..\common.openconsole.props" Condition="'$(OpenConsoleDir)'==''" />
|
||||
|
|
Loading…
Reference in a new issue