Skip to content

Releases: microsoft/CsWinRT

CsWinRT 1.2.4

20 Apr 21:31
c6f2b50
Compare
Choose a tag to compare

Release Notes

This release fixes an issue with C#/WinRT projection projects not supporting the FastUpToDateCheck feature in Visual Studio.

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

Changes:

  • c6f2b50 Add explicit dependency info to enable FastUpToDateCheck feature in VS (#813)

This list of changes was auto generated.

CsWinRT 1.2.3

19 Apr 21:45
5695e66
Compare
Choose a tag to compare

Release Notes

This release fixes an issue with missing Windows.Foundation.Metadata.* attributes affecting Project Reunion/WinUI applications.

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

Changes:

This list of changes was auto generated.

CsWinRT v1.2.2

13 Apr 21:31
039332d
Compare
Choose a tag to compare

Release Notes

NOTE: Due to an issue with .NET builds, the .NET reference packages (Windows SDK projections) in this release are included in .NET 5.0.300 SDK, but not in the .NET 5.0.203 SDK in the .NET May 2021 Update.

This release includes a couple bugfixes to the runtime and Windows SDK projections. Since the last .NET April 2021 Update corresponds with C#/WinRT v1.1.4, please refer to the v1.2.0 Milestone, v1.2.1 Milestone, and 1.2.2 Milestone for all fixes since the .NET April Update (.NET SDK 5.0.202). In particular, C#/WinRT v1.2.0 includes fixes for impactful memory leaks in WinUI applications.

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

.NET reference packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.16
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.16
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.16

This release includes the following fixes:

  • Runtime fix for memory leaks using WinRT APIs such as Windows.Graphics.Imaging and Windows.Storage (#645)

Changes:

  • 039332d Fix memory leaks of classes when using the generic marshaler to dispose (#800)

This list of changes was auto generated.

CsWinRT v1.2.1

08 Apr 19:20
2c38175
Compare
Choose a tag to compare

Release Notes

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

This release includes the following changes:

  • A workaround fix in the runtime to address a WinUI issue with casting IBindableIterable to IIterable. (#793)
  • Setting CsWinRTWindowsMetadata when referencing the C#/WinRT package is not required. (#786)

Changes:

  • 2c38175 Fix scenarios where the managed object which the event handler is registered on is gone. (#795)
  • 7d70258 model IUserConsentVerifierInterop correctly (#794)
  • 77b498e Add workaround for issue in WinUI where they cast IBindableIterable to IIterable (#793)
  • ad6adcb default CsWinRTWindowsMetadata to TargetPlatformVersion (#786)
  • This list of changes was auto generated.

CsWinRT v1.2.0

02 Apr 21:16
0359ee3
Compare
Choose a tag to compare

Release Notes

This release addresses a major memory leak issue seen in WinUI and Project Reunion C# desktop applications (#782). For more details on bug-fixes in this release, refer to the Release 1.2.0 Milestone.

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

This release includes the following fixes:

  • Fix for memory leaks in various scenarios using WinUI objects and page navigation (#413): This fix will require a C#/WinRT package reference for the updated runtime until an updated .NET SDK comes out with that runtime, in addition to an upcoming WinUI update.

    Some of the main memory leak scenarios resolved include:

    1. Aggregated scenarios: subclassing WinUI objects, invoking an event handler, property or method
    2. Non-aggregated scenarios: page navigation, reference cycles
  • Fix for GC holes in string marshaling (#773): The updated runtime includes the fix for crashes resulting from the memory location of the string object being moved by the GC. The remaining part of the fix for this issue involving a memory leak will be addressed in a future Windows SDK projection update.
    Thank you @filipnavara for this community contribution!

Important Notes

  • WinRT.Runtime.dll AssemblyVersion has been incremented to v1.2.0.0. Because of this version change, building with the new runtime will require all dependent components to update their runtime version as well.

Changes:

This list of changes was auto generated.

CsWinRT v1.1.4

17 Mar 17:10
537d87a
Compare
Choose a tag to compare

Release Notes

This release of C#/WinRT is aligned with the .NET April 2021 Update, and includes a couple bugfixes to the runtime and Windows SDK projections. For a complete list of additions and bug-fixes, refer to the Release 1.1.4 Milestone. The v1.1.4 C#/WinRT NuGet package also includes updates to authoring support, which includes automating the runtimeconfig.json file and removing the need for manual edits to the native application project file.

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

.NET reference packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.15
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.15
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.15

This release includes the following fixes:

  • Fixes for System.ObjectDisposedException issues (#682)
  • DateTimeOffset marshaling now supports negative FileTime, making it compatible with .NET Core 3.
    Thank you @huoyaoyuan for this community contribution!
  • Fixed a regression involving typeof(Type) checks that fixes loading default styles of custom control: microsoft/microsoft-ui-xaml#4414
  • Fixed a regression involving InvalidCastException for a few types such as TimeSpan: microsoft/microsoft-ui-xaml#4461

Changes:

  • 537d87a Update ComWrappersSupport (#771)
  • 6e11955 Fixed regression in determining whether to provide IReference implementation, which dropped TimeSpan and a few other value types (#770)
  • d968022 Update AuthoringWinUITest (#769)
  • 2513fe2 Update targets (#765)
  • 006ad4e Fix GC issues with static events. (#759)
  • 0e66e66 Fix typeof(Type) checks to account for RuntimeType (#760)
  • d0051af Use .NET Core 3.1 compatible marshaling for DateTimeOffset. (#761)

This list of changes was auto generated.

CsWinRT v1.1.3

26 Feb 06:56
d361800
Compare
Choose a tag to compare

Release Notes

This release fixes a regression in v1.1.2 that caused ReadyToRun builds to break.

Note: This release is not associated with a .NET SDK update.

C#/WinRT Package:
https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/1.1.3

Changes:

This list of changes was auto generated.

CsWinRT v1.1.2

17 Feb 21:19
d777f4b
Compare
Choose a tag to compare

Release Notes

This release of C#/WinRT is aligned with the .NET March 2021 Update and includes a couple fixes and updates to the runtime and Windows SDK projections for .NET v5.0.4. For a complete list of additions and bug-fixes, refer to the Release 1.1.2 Milestone.

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

.NET reference packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.14
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.14
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.14

Changes:

  • d777f4b ensure that value/delegate types are projected before implementing IPropertyValue (#741)
  • 4fa1fda Perf improvements in CCW creation. (#739)
  • eff4b06 add link to bgtask sample (#738)
  • c64ee59 Fix logging issues and move to SyntaxReceiver (#737)
  • 8e1ce85 Add background task component sample (#736)
  • 65f4e3f Update sample for 1.1.2-prerelease (#727)

This list of changes was auto generated.

CsWinRT v1.1.2-prerelease.210208.6

09 Feb 04:34
7ff08a8
Compare
Choose a tag to compare

https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/1.1.2-prerelease.210208.6

Release Notes

This release features an initial preview of C#/WinRT authoring support. This version supports consumption of C#/WinRT authored components using a package reference or project reference, with a few project modifications. For details on how to author and consume a C#/WinRT component, refer to the authoring docs. This version does not yet support WinUI 3 authoring scenarios.

For a list of authoring changes and bug-fixes, see the 1.1.2 Preview milestone.

Changes:

See More
  • 02ee3f4 Remove unsupported solution configs, make get_testwinrt curdir-independent, assert TestWinRT requirement (#706)
  • 4b3c932 Add support for explicitly implemented interfaces (#704)
  • 02896f5 Update authoring.md (#691)
  • e33691e Update nuget targets (#688)
  • 5351b4b Update Diagnostic rules (#685)
  • 02894d7 pr feedback
  • 244e24d Merge branch 'master' into jlarkin/update-diagnostics
  • 28eae2e doc CsWinRTEnableLogging (#689)
  • 31fe428 fix bug in ref diagnostic being thrown
  • 00da995 fix bug in unittests
  • f96ab51 update help link for rules
  • 0e9c04d Add notes to rules in AnalyzerReleases
  • fd9d6ac update gitignore, add analyzer release files, update unittests for new diagnostic identifer (wme -> cswinrt)
  • fc2f2b6 feedback
  • ad03f4d Merge branch 'master' into jlarkin/update-diagnostics
  • ea2ac32 change wme to cswinrt
  • b7f8d71 fix tables and casing in hosting.md (#683)
  • 7a31b0b update diagnostic messages

This list of changes was auto generated.

CsWinRT v1.1.1

20 Jan 22:51
5e14799
Compare
Choose a tag to compare

https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/1.1.1

Release Notes

This release of C#/WinRT is aligned with the .NET February 2021 Update and includes a couple fixes and updates to the runtime and Windows SDK projections for NET v5.0.3. For a complete list of additions and bug-fixes, refer to the Release 1.1.1 Milestone.

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

.NET reference packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.13
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.13
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.13

Changes:

  • 5e14799 Implement singleton pattern for ComWrappers (#675)
  • 913244d Fixed ObjectDisposedException on delegates (#674)
  • 3a4dd0d Add DefaultOverload attribute to projected interface methods (#672)
  • 0f83d07 Fix path to generated winmd (#671)
  • 15942b3 Add targets for hosting support (#665)
  • f5a5255 Fix issue where the same component can be loaded in multiple ALC and cause cast issues (#669)
  • fb0e7ad Authoring bug fixes and xaml type mapping (#666)
  • 86895f6 Add mapping from ContractVersion attrib to SupportedOSPlatform attrib for VS compat assistance (#557)
  • b7dad4a update broken link (#664)
  • 36f722d Move authoring tests to test folder (#660)
See More

This list of changes was auto generated.