Correct remove WinForms logic

This commit is contained in:
William Li 2020-04-30 15:28:15 -07:00
parent bec7718577
commit ad590737e6

View file

@ -174,8 +174,8 @@
<Target Name="LayoutTemplatesForSDK"
DependsOnTargets="SetupBundledComponents;CalculateTemplatesVersions">
<ItemGroup Condition="!$(ProductMonikerRid.StartsWith('win'))">
<BundledTemplate Remove="Microsoft.Dotnet.Wpf.ProjectTemplates" />
<BundledTemplate Remove="Microsoft.Dotnet.WinForms.ProjectTemplates" />
<Bundled50Templates Remove="Microsoft.Dotnet.Wpf.ProjectTemplates" />
<Bundled50Templates Remove="Microsoft.Dotnet.WinForms.ProjectTemplates" />
</ItemGroup>
<Copy SourceFiles="%(Bundled50Templates.RestoredNupkgPath)"
DestinationFolder="$(RedistLayoutPath)templates/$(BundledTemplates50InstallPath)"/>