CsWinRT v1.3.0
Release Notes
This release of C#/WinRT is aligned with the .NET July 2021 Update and includes performance improvements, bug-fixes, and other updates to the runtime and Windows SDK projections. This release also includes updates to the C#/WinRT package. For a detailed list of fixes and updates, refer to the Release 1.3.0 Milestone.
C#/WinRT package:
https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/1.3.0
.NET Windows SDK targeting packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.20348.18
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.18
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.18
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.18
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22000.71-preview
Note: This is a preview Windows Insider SDK package. See aka.ms/windowsinsidersdk for more details on .NET 5 support for targeting the Insider SDK.
Important Notes
- WinRT.Runtime.dll
AssemblyVersion
has been incremented from 1.2.0.0 to 1.3.0.0. - Microsoft.Windows.SDK.NET.dll
AssemblyVersion
has been incremented from 10.0.xxxxx.10 to 10.0.xxxxx.18.
Because of theAssemblyVersion
changes, building with the new runtime will require all dependent components to update their runtime version as well. - Starting with this release, we are also generating the Windows SDK reference packages for Windows 10 SDK (10.0.20348.0), version 2104. This version is primarily intended for Windows Server development.
Bug-fixes and Updates
Runtime and Windows SDK projection updates:
-
Performance improvements for subscribing to events (#852)
-
Added projections for COM Interop APIs (#830)
- See known issue on building with x86 (#888)
-
Added support for calling non-agile objects regardless of current context (#853)
-
Fix for
InvalidCastException
from WinRT.IInspectable to Microsoft.UI.Xaml.Data.ICustomProperty (#856) -
Fix for aggregated tear off scenarios (#870)
C#/WinRT tool updates:
-
Automatically detect dependent WinMDs for C#/WinRT authored components (#855)
-
Fix for invalid C# generated projections when using newlines in custom attributes (#873)
-
Fully qualify attribute types to fix projection issue with nested namespaces (#878)
Changes:
- 3b640ea added out param default to event source handlers (#884)
- 84a3654 [DO NOT MERGE] conditional revert of EventSource caching (#876) [ #861 ]
- 21f231b Fixing targets when winrt.cs doesn't exist (#883)
- d607f3e Address potential races in recent event changes (#882)
- ea43282 Fixed dotnet build in benchmarks (#865)
- 1e1ace2 Rework Fast Up To Date checks to correctly capture cs:winmd relationship (#880)
- 8136c03 Added support for out and array params for event source handler (#881)
- 268f08b Fully qualify attributes. (#878)
- 750ac74 Prioritize the assembly whether the projected type is to look up the helper type. (#877)
- 0bc7f16 Test occasionally times out in pipeline, increasing timeout. (#875)
See More
- 1975832 Allow for either new line to be used. (#874)
- 14f9733 Fix codegen when custom attributes have embedded newlines (#873)
- c4ea06b Fix issue with interop winmd (#872)
- 9154452 Fix for aggregated tear off scenarios (#870)
- d4a60fd Clean intermediate dirs in pipeline builds to manage disk space (#871)
- 334cb0e Fix staging of interop winmd (pipeline has coordinated changes) (#869)
- 8b780e4 Fix build warning treated as error for x86 builds (#868)
- 0a35e01 Project COM interop APIs (#830)
- fa038af Added caching of event registration state to support unsubscribes across garbage collections (#861)
- af996c1 Deleted redundant binary file added by mistake (#867)
- dbcf290 Fixed special cased event source (#866)
- e372646 enum arrays are not blittable - special cased (#860)
- 7c19930 Ujjwalchadha/perf/eventsourcecodegen (#852)
- 2a6c82e Add support for calling non agile objects regardless of current context (#853)
- 3700e25 Add logic to gather respective WinMDs of dependent projection DLLs. (#855)
- 806fe82 Update dotnet SDK to to address VS 16.10 regressions (#857)
This list of changes was auto generated.