CsWinRT 2.0 and .NET 5 #1232
Replies: 3 comments 9 replies
-
FYI @azchohfi @Sergio0694 |
Beta Was this translation helpful? Give feedback.
-
Does the 2.0.0 version indicate (as per semantic versioning) that it will have the liberty of making some breaking changes and correct some unfortunate design decisions of the first release, and improve the API shape in general? Just to make a few random examples: Having Function pointers in CsWinRT/src/WinRT.Runtime/Interop/IUnknownVftbl.cs Lines 17 to 22 in a59ba54 The Or is 2.0.0 just to indicate the fact .NET 5 is being dropped? ...I hope it's the former? 😄 |
Beta Was this translation helpful? Give feedback.
-
Thoughts on getting rid of the As* methods as part of 2.0 and do the mapping automatically like we already do for IIterable->IEnumerable, IVector ->IList, Uri->Uri etc? Few examples that come to mind:
|
Beta Was this translation helpful? Give feedback.
-
With .NET 5’s end of support on May 10, 2022 , the Windows SDK projection brought in by the .NET 5 SDK is no longer updated. .NET 6 and later SDKs continue to be updated. With CsWinRT bringing in new features such as IL trimming, the generated projections are starting to use APIs that are only available in or can only be guaranteed to be available in applications targeting .NET 6 and later. Due to this, CsWinRT plans to drop support for .NET 5 and move to CsWinRT 2.0. CsWinRT 1.6.5 will be the last update which supports .NET 5 and any customers who still need .NET 5 compatible projections may continue to use it.
Beta Was this translation helpful? Give feedback.
All reactions