#3278 wix 3.7 happily links mis-matched RequiredVersion attribute

v4.0
expected-behavior
nobody
None
2013-04-20
2013-04-19
Erik Purins
No

Running an msbuild command line build of a vs2010 wix project that has RequiredVersion attribute set to a 3.6 series version succeeds linking in wix 3.7

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
  xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'
  xmlns:iis='http://schemas.microsoft.com/wix/IIsExtension'
  RequiredVersion="3.6.2221.0">

RequiredVersion was probably originally intended to force the compiler to assert if it wasn't the matching version string.

If it actually means minimum wix version, there should probably be a different attribute for that.

Discussion

  • Bob Arnson
    Bob Arnson
    2013-04-20

    Wix/@RequiredVersion is a greater-or-equal check. What's the use case to check for exactly one version?

     
  • Bob Arnson
    Bob Arnson
    2013-04-20

    • status: open --> expected-behavior
     
  • Bob Arnson
    Bob Arnson
    2013-04-20

    The original intention was to "fail fast" when a WiX feature wasn't present in earlier versions, rather than silently failing or giving a potentially more confusing error message.