wixtoolset / issues

WiX Toolset Issues Tracker
http://wixtoolset.org/
129 stars 24 forks source link

WiXCop v4 Upgrade leaves DestinationLongName alone #7889

Open chrpai opened 11 months ago

chrpai commented 11 months ago

Bugs

If this issue is a bug:

Create a v3 project with a fragment containing a CopyFile@DestinationLongName attribute. It will build with a deprecation warning. Convert it to v4 using Heatwave/WixCop. It will say conversion succeeded. Nothing in the conversion log mentions this attribute. However the build v4 build will fail wwith WIX0004 saying the attribute is unexpected.

    <Fragment>
        <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
      <Component Id="test">
        <File Id="test" Source="C:\vfcompat.dll">
          <CopyFile Id="dupe" DestinationLongName="somethinglegacy.dll"/>
        </File>
      </Component>
        </ComponentGroup>
    </Fragment>

I'd expect wixcop to rename DestinationLongName to DestinationName or report a conversion failure if there is a reason this isn't safe to do automatically.

chrpai commented 10 months ago

@barnson I can take this one