File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Microsoft.Toolkit.Uwp.UI.Controls.Markdown Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 4646 <Message Text =" CSFiles: @(GeneratedCSFiles->'" %(Identity)" ')" />
4747 <Exec Command =" for %%f in (@(GeneratedCSFiles->'" %(Identity)" ')) do echo #pragma warning disable > %%f.temp && type %%f >> %%f.temp && move /y %%f.temp %%f > NUL" />
4848 </Target >
49+
50+ <!--
51+ Required workaround for ProjectReference inclusion of the Controls package
52+ The UWP project system is including the Controls resources in the pri file because
53+ it doesn't know it'll be an independent package later during packing.
54+ Therefore, we need to remove these extra resources in the PRI pipeline so the
55+ Markdown pri file is properly generated and doesn't include duplicate references to Control resources.
56+ -->
57+ <Target Name =" RemoveUnwantedPri" AfterTargets =" GetPackagingOutputs" >
58+ <!-- <Message Text="Files Before: @(PackagingOutputs)" Importance="high" />-->
59+ <ItemGroup >
60+ <PackagingOutputs Remove =" @(PackagingOutputs)" Condition =" '%(PackagingOutputs.Filename)%(PackagingOutputs.Extension)' == 'Microsoft.Toolkit.Uwp.UI.Controls.pri'" />
61+ <PackagingOutputs Remove =" @(PackagingOutputs)" Condition =" $([System.String]::new('%(PackagingOutputs.TargetPath)').StartsWith('Microsoft.Toolkit.Uwp.UI.Controls\'))" />
62+ </ItemGroup >
63+ <!-- <Message Text="Files After: @(PackagingOutputs)" Importance="high" />-->
64+ </Target >
4965</Project >
You can’t perform that action at this time.
0 commit comments