microsoft/CsWinRT 2.3.0-prerelease.250720.1
microsoft/CsWinRT
Captured source
source ↗CsWinRT 2.3.0-prerelease.250720.1
Repository: microsoft/CsWinRT
Tag: 2.3.0-prerelease.250720.1
Published: 2025-08-08T01:55:27Z
Prerelease: yes
Release notes: This is a prerelease version of C#/WinRT with more bug fixes and improvements specifically to our .NET AOT support. One key thing to note is that our .NET 6 / .NET 7 support has been dropped starting from this release.
This version also has a preview Windows SDK projection which may be used if desired for the `IWeakReferenceSource` fix. It can be consumed by setting the following property in your C# project file based on the .NET version and the OS version that you are targeting:
.NET 8
10.0.xxxxx.72-preview
.NET 9
10.0.xxxxx.73-preview
C#/WinRT package: https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/2.3.0-prerelease.250720.1
What's Changed
- Fix AnalyzerReleases.Shipped typo by @dotMorten in https://github.com/microsoft/CsWinRT/pull/1868
- Remove .NET 6 target from all projects by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1875
- Fix CI by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1879
- Update staging/2.3 from main by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1882
- Improved Diagnostics for error scenarios with authoring projects by @chenss3 in https://github.com/microsoft/CsWinRT/pull/1863
- Skip closure allocation in IDIC caching by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1888
- Make 'CreateIIDForGenericType' zero-alloc by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1889
- Enable support for C# collection expressions by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1878
- Add 'CsWinRTEnableManifestFreeActivation' feature switch by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1887
- Implement stub .exe support for apps + WinRT components by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1895
- Fix IDIC casts failing during authoring scenarios by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1899
- Fix projected covariance interfaces by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1902
- Merge master to staging/2.3 by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1905
- Document AotOptimizerEnabled and GeneratedWinRTExposedTypeAttribute by @dongle-the-gadget in https://github.com/microsoft/CsWinRT/pull/1910
- [CodeQL] suppress usage of SHA1 in uuidv5 generation of WinRT pinterface guids by @DefaultRyan in https://github.com/microsoft/CsWinRT/pull/1911
- Fix adding error info object to Exception.Data on net framework by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1916
- Add mapping from COR_E_INVALIDOPERATION by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1920
- Add mapping for 'E_NOTSUPPORTED' by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1921
- Update staging/2.3 by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1924
- Enable adding GC pressure on Native AOT by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1933
- Enable propagating WinRTRuntimeClassName value to activation factory lookup by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1934
- Update staging with latest changes from master by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1935
- Add analyzer for '[ComImport]' casts on AOT by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1927
- Avoid `QueryInterface' + 'Release' when wrapping managed CCWs by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1938
- Don't use legacy 'ComWrappers' overload for COM aggregation by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1945
- Remove unused internal 'IPropertyValue' and IDIC support by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1937
- Add .NET 9 target for WinRT.Runtime.dll by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1843
- Add analyzer for trim-unsafe casts to projected runtime class types by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1956
- Migrate pipeline by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1957
- ReleaseObjects should safely handle non projected RCWs by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1958
- Fix signing location by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1960
- Add attribute and code fixer for trim-unsafe casts by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1959
- Central package management by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1962
- Add TSA override by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1964
- Improve CI build by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1966
- Fix KeyValuePair pointer reuse issue by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1967
- Avoid GetFunctionForDelegate call in delegate vtables by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1971
- Add option to generate managed DllGetActivationFactory by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1973
- Merge master to staging branch by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1972
- Remove CsWinRTErrorForInvalidMergeReferencedActivationFactories error which doesn't apply anymore by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1970
- Don't report RPC errors for completion handlers due to the other process is gone by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1969
- Move source generator tests by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1975
- Fix signing by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1976
- Skip lambda allocation in 'EventSourceCache' by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1977
- Sign winmd and MUI files by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1978
- Moving CsWinRTGenerateManagedDllGetActivationFactory to right target by @manodasanW in https://github.com/microsoft/CsWinRT/pull/1991
- Embed manifest in stub exe if provided by @jevansaks in https://github.com/microsoft/CsWinRT/pull/1992
- Stub exe generation fails with a manifest if CsWinRTUseEnvironmentalTools=false by @jevansaks in https://github.com/microsoft/CsWinRT/pull/1994
- Don't ignore 'TryRemove' result in event cache by @Sergio0694 in https://github.com/microsoft/CsWinRT/pull/1980
- Update cast analyzer to handle switch statement patterns by…
Excerpt shown — open the source for the full document.
Notability
notability 3.0/10Routine prerelease release