mono / monodevelop

MonoDevelop is a cross platform .NET IDE
http://www.monodevelop.com
2.84k stars 1.02k forks source link

Filename with encoded characters not being excluded in SDK-style csprojs #9395

Open drewgillies opened 4 years ago

drewgillies commented 4 years ago

If you have a group of PNGs with the following names and add them to an SDK-style csproj manually:

<ItemGroup>
    <EmbeddedResource Include="Icons\environmentoverrides-16.png" />
    <EmbeddedResource Include="Icons\environmentoverrides-16%402x.png" />
    <EmbeddedResource Include="Icons\environmentoverrides-16~dark.png" />
    <EmbeddedResource Include="Icons\environmentoverrides-16~dark%402x.png" />
  </ItemGroup>
  <ItemGroup>
    <None Remove="Icons\environmentoverrides-16.png" />
    <None Remove="Icons\environmentoverrides-16%402x.png" />
    <None Remove="Icons\environmentoverrides-16~dark.png" />
    <None Remove="Icons\environmentoverrides-16~dark%402x.png" />
  </ItemGroup>

...the solution explorer/pad won't exclude them properly (there will still be duplicates of the PNGs with %40 in the name):

image

Removing the duplicates from the solution explorer will create additional Remove items.

VS bug #1028085