Skip to content

Commit

Permalink
Revert "Fixing repeated entries in Microsoft.UI.Xaml.vcxproj.filters" (
Browse files Browse the repository at this point in the history
…#1560)

This reverts commit 9a94174.
  • Loading branch information
ranjeshj authored and kaiguo committed Nov 6, 2019
1 parent 14df4a8 commit 25acf5b
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 98 deletions.
166 changes: 68 additions & 98 deletions dev/dll/Microsoft.UI.Xaml.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@
<ClCompile Include="XamlControlsResources.cpp" />
<ClCompile Include="XamlMember.cpp" />
<ClCompile Include="XamlMetadataProvider.cpp" />
<ClCompile Include="$(OutDir)XamlMetadataProviderGenerated.cpp" />
<ClCompile Include="XamlType.cpp" />
<None Include="$(OutDir)XamlMetadataProviderWindowsCodeGen.cs" />
<None Include="WinRtType.tt" />
</ItemGroup>
<ItemGroup>
Expand All @@ -308,6 +310,68 @@
<ThemeResource>true</ThemeResource>
<Link>DensityStyles\%(Filename)%(Extension)</Link>
</Page>
<!-- Pages which needs CustomCompile to run a different version of GenXBF, we attach MinSDKVersionRequired to Page to help CompileXaml to identify the min SDK Version -->
<PageRequiringCustomCompilation Include="$(OutDir)rs2_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS2ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs3_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS3ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs4_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS4ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs5_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS5ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)19h1_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredFor19H1ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs2_themeresources.xaml;$(OutDir)rs2_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS2ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs3_themeresources.xaml;$(OutDir)rs3_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS3ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs4_themeresources.xaml;$(OutDir)rs4_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS4ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs5_themeresources.xaml;$(OutDir)rs5_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS5ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)19h1_themeresources.xaml;$(OutDir)19h1_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\%(Filename)%(Extension)</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredFor19H1ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<Page Include="@(PageRequiringCustomCompilation)" />
<CompactPage Include="$(MSBuildThisFileDirectory)DensityStyles\Compact.xaml" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -426,39 +490,6 @@
<CreateProperty Value="True">
<Output TaskParameter="ValueSetByTask" PropertyName="GenericXamlFileNeedsCompilation" />
</CreateProperty>
<ItemGroup>
<!-- Pages which needs CustomCompile to run a different version of GenXBF, we attach MinSDKVersionRequired to Page to help CompileXaml to identify the min SDK Version -->
<PageRequiringCustomCompilation Include="$(OutDir)rs2_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs2_generic.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS2ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs3_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs3_generic.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS3ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs4_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs4_generic.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS4ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs5_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs5_generic.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS5ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)19h1_generic.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\19h1_generic.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredFor19H1ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
</ItemGroup>
</Target>
<Target Name="GenerateThemeResourceFile" DependsOnTargets="CategorizeSharedPages" BeforeTargets="$(GenerateXamlFileBeforeTargets)" Inputs="@(RS1ThemeResourcePage);@(RS2ThemeResourcePage);@(RS3ThemeResourcePage);@(RS4ThemeResourcePage);@(RS5ThemeResourcePage);@(NineteenH1ThemeResourcePage)" Outputs="$(OutDir)rs1_themeresources.xaml;$(OutDir)rs2_themeresources.xaml;$(OutDir)rs3_themeresources.xaml;$(OutDir)rs4_themeresources.xaml;$(OutDir)rs5_themeresources.xaml;$(OutDir)19h1_themeresources.xaml;">
<Message Text="Generating theme resources XAML file " />
Expand All @@ -470,39 +501,6 @@
<CreateProperty Value="True">
<Output TaskParameter="ValueSetByTask" PropertyName="ThemeResourceFileNeedsCompilation" />
</CreateProperty>
<ItemGroup>
<!-- Pages which needs CustomCompile to run a different version of GenXBF, we attach MinSDKVersionRequired to Page to help CompileXaml to identify the min SDK Version -->
<PageRequiringCustomCompilation Include="$(OutDir)rs2_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs2_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS2ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs3_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs3_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS3ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs4_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs4_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS4ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs5_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs5_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS5ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)19h1_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\19h1_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredFor19H1ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
</ItemGroup>
</Target>
<Target Name="GenerateCompactThemeResourceFile" DependsOnTargets="CategorizeSharedPages" BeforeTargets="$(GenerateXamlFileBeforeTargets)" Inputs="@(RS1ThemeResourcePage);@(RS2ThemeResourcePage);@(RS3ThemeResourcePage);@(RS4ThemeResourcePage);@(RS5ThemeResourcePage);@(NineteenH1ThemeResourcePage);@(CompactPage)" Outputs="$(OutDir)rs1_compact_themeresources.xaml;$(OutDir)rs2_compact_themeresources.xaml;$(OutDir)rs3_compact_themeresources.xaml;$(OutDir)rs4_compact_themeresources.xaml;$(OutDir)rs5_compact_themeresources.xaml;$(OutDir)19h1_compact_themeresources.xaml;">
<Message Text="Generating theme resources XAML file " />
Expand All @@ -514,38 +512,11 @@
<CreateProperty Value="True">
<Output TaskParameter="ValueSetByTask" PropertyName="CompactThemeResourceFileNeedsCompilation" />
</CreateProperty>
</Target>
<Target Name="RemovePageRequiringCustomCompilation" AfterTargets="BeforeBuildGenerateSources" BeforeTargets="MarkupCompilePass2" Condition="'@(PageRequiringCustomCompilation)' != ''">
<Message Text="RemovePageRequiringCustomCompilation" />
<ItemGroup>
<!-- Pages which needs CustomCompile to run a different version of GenXBF, we attach MinSDKVersionRequired to Page to help CompileXaml to identify the min SDK Version -->
<PageRequiringCustomCompilation Include="$(OutDir)rs2_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs2_compact_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS2ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs3_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs3_compact_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS3ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs4_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs4_compact_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS4ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)rs5_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\rs5_compact_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredForRS5ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<PageRequiringCustomCompilation Include="$(OutDir)19h1_compact_themeresources.xaml">
<SubType>Designer</SubType>
<ThemeResource>true</ThemeResource>
<Link>Themes\19h1_compact_themeresources.xaml</Link>
<MinSDKVersionRequired>$(MinSDKVersionRequiredFor19H1ThemeResource)</MinSDKVersionRequired>
</PageRequiringCustomCompilation>
<Page Remove="@(PageRequiringCustomCompilation)" />
</ItemGroup>
</Target>
<Target Name="AddPageRequiringCustomCompilation" BeforeTargets="CompilePageRequiringCustomCompilation" AfterTargets="MarkupCompilePass2" Condition="'@(PageRequiringCustomCompilation)' != ''">
Expand Down Expand Up @@ -662,7 +633,6 @@
<!-- Run XamlMetadataProviderGenerated.tt t4 template to generate XamlMetadataProviderGenerated.cpp from the winmd file -->
<CallTarget Targets="TransformAll" />
<ItemGroup>
<ClCompile Include="$(OutDir)XamlMetadataProviderGenerated.cpp" />
<FileWrites Include="$(OutDir)XamlMetadataProviderGenerated.cpp" />
</ItemGroup>
</Target>
Expand Down
16 changes: 16 additions & 0 deletions dev/dll/Microsoft.UI.Xaml.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,22 @@
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="$(MSBuildProjectDirectory)\DensityStyles\Compact.xaml" />
<Page Include="$(MSBuildProjectDirectory)\DensityStyles\CompactDatePickerTimePickerFlyout.xaml" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
<Page Include="@(PageRequiringCustomCompilation)" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Microsoft.UI.Xaml.rc">
Expand Down

0 comments on commit 25acf5b

Please sign in to comment.