Skip to content

CsWinRT 2.3.1

Latest

Choose a tag to compare

@manodasanW manodasanW released this 23 Jul 02:07
ff5227a

This is a stable minor version release for 2.x with the various fixes and improvements that have been available in our CsWinRT 2.3 previews. We will also be updating the .NET SDK with these updated Windows SDK projections. Below are some notable highlights included in this release. See the full commit list below for the complete set of changes.

  • Dropped support for .NET 6 and .NET 7
  • Added a .NET 9 version of WinRT.Runtime.dll which enables marshalling of non-blittable arrays under Native AOT
  • Added support for collection expressions including an analyzer to warn for unsupported scenarios
  • Improvements to exception propagation to include a default message
  • Fixed scenarios where the SupportedOSPlatform attribute was not being projected as expected
  • Fixed issues with unsubscribing from events on non-agile objects
  • Added a CsWinRTAotWarningLevel = 3 for more extensive AOT warnings with respect to casting scenarios. These warnings can be noisy, so they are not enabled by default.
  • Added a way to suppress AOT partial warnings for certain interfaces using the cswinrt_aot_warning_suppressed_interfaces editor config option.

.NET Windows SDK targeting packages for .NET 8:

<WindowsSdkPackageVersion>10.0.xxxxx.86</WindowsSdkPackageVersion>

https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.26100.86
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22621.86
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22000.86
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.20348.86
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.86
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.86
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.86

.NET Windows SDK targeting packages for .NET 9 / 10:

<WindowsSdkPackageVersion>10.0.xxxxx.87</WindowsSdkPackageVersion>

https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.26100.87
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22621.87
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22000.87
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.20348.87
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.87
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.87
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.87

C#/WinRT package:
https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/2.3.1

What's Changed

Full Changelog: 2.2.0.241111.1...2.3.1.260716.1