Moq v4.18.0 Release Notes

Release Date: 2022-05-12 // 5 months ago
  • ๐Ÿ†• New major version of DynamicProxy (you may get better performance!), so please update with care.

    ๐Ÿ”„ Changed

    • โšก๏ธ Update package reference to Castle.Core (DynamicProxy) from version 4.4.1 to 5.0.0 (@stakx, #1257)
    • ๐Ÿ‘€ Adjusted our target frameworks to match DynamicProxy's (see their discussion about which frameworks to target):
      • minimum .NET Framework version raised from net45 to net462
      • additional net6.0 TFM

    ๐Ÿ›  Fixed

    • Can't set up "private protected" properties (@RobSiklos, #1170)
    • Using [...] an old version of System.Net.Http which is vulnerable to "DoS", "Spoofing", "Privilege Escalation", "Authentication Bypass" and "Information Exposure" (@sidseter, #1219)
    • ๐Ÿ”ง Failure when invoking a method with by-ref parameter & mockable return type on a mock with CallBase and DefaultValue.Mock configured (@IanKemp, #1249)