Skip to content

Releases: microsoft/CsWinRT

CsWinRT v2.0.8

11 Jul 01:50
9cf9847
Compare
Choose a tag to compare

This is a minor release with a set of fixes for reported issues since 2.0.7. This stable release doesn't have the AOT changes which are available in the preview release. An updated preview release will be coming soon.

What's Changed

New Contributors

Full Changelog: 2.0.7.240207.1...2.0.8.240703.1

CsWinRT 2.1.0-prerelease.240602.1

04 Jun 20:50
7602014
Compare
Choose a tag to compare
Pre-release

This is a prerelease version of C#/WinRT focused on bringing .NET AOT support and improved trimming support to both the runtime and generated projections. This version requires the preview Windows SDK projection package from below which can be consumed by setting the following property in your C# project file:

<WindowsSdkPackageVersion>10.0.xxxxx.35-preview</WindowsSdkPackageVersion>

C#/WinRT package:
https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/2.1.0-prerelease.240602.1

.NET Windows SDK targeting packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22621.35-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22000.35-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.20348.35-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.35-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.35-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.35-preview

More details on the effect of these improvements and known issues can be found here: https://github.com/microsoft/CsWinRT/blob/staging/AOT/docs/aot.md

Thank you to @dongle-the-gadget, @Gaoyifei1011, @hez2010, @Jeremy-Price, @jlaanstra, @Sergio0694 for your community contributions to this significant release.

New Contributors

Full Changelog: 2.0.7.240207.1...2.1.0-prerelease.240602.1

CsWinRT v2.0.7

08 Feb 00:06
2b77d84
Compare
Choose a tag to compare

Minor update to address regression in 2.0.6 with respect to projected types in WinRT namespace

Changes:

  • 2b77d84 Update CsWinRT-Variables.yml (#1501)
  • 174ccbf Fix mising global:: and add test case to avoid breaking in future. (#1500)

This list of changes was auto generated.

CsWinRT v2.0.6

03 Feb 03:42
ef21429
Compare
Choose a tag to compare

Changes:

  • ef21429 Ensure the FactoryObjectReference also holds a pointer to the context callback. (#1492)
  • 70e9541 Remove Resurrect logic as it shouldn't be needed for .NET 6 and newer. (#1380)
  • 1492035 Update version (#1451)
  • eb066e4 Merge pull request #1426 from microsoft/manodasanw/namespacediagnostics
  • e8aa2cf Update src/Authoring/WinRT.SourceGenerator/Generator.cs
  • f66605f Merge branch 'master' into manodasanw/namespacediagnostics
  • a3e1698 Merge pull request #1423 from jevansaks/patch-1
  • 2f033fc Fix diagnostics for namespaces not working with internal partial types due to the IsPublic check treated partial as public
  • b9dc1db Add details about CsWinRTPrivateProjection
  • 440e357 Remove unnecessary new. (#1410)
See More
  • a18d1ee Add the implementation dll to make sure design time builds pick up on the output. (#1389)
  • 2eaff7a Update baseline and pipeline badge (#1405)
  • b090c4f Fix pipeline (#1404)
  • 7116993 Adding new pipeline (#1372)
  • 5d34730 Merge pull request #1375 from jlaanstra/user/jlaans/1112-5
  • 7d917ac Comments.
  • 12ba656 Use Attach to avoid extra AddRef.
  • 0008648 Only on .NET
  • 5bcbdc2 Fix test failure.
  • 2445e5b Avoid some addref/release.
  • 50255b9 Add test.
  • a2b04df Simplify factory caching by using a FactoryObjectReference type that tracks the context.
  • 0258835 Define more InterfaceIIDs.
  • 65aabe2 Fix test that enables apartment specific object to be created from other apartmwent if the first instance was created on the STA.
  • 0020cc8 Include CsWinRT.exe in the UpToDateCheck.
  • 7bd11ec Merge pull request #1368 from microsoft/manodasanW-patch-1
  • f8bd478 Update version

This list of changes was auto generated.

CsWinRT v2.0.4

17 Oct 03:36
c7c0b30
Compare
Choose a tag to compare

Changes:

  • c7c0b30 Merge pull request #1366 from microsoft/manodasanw/fixdotnetversions
  • c62efe4 Adding missed file
  • f8d86b3 Updating versions used.
  • 179bb06 Merge pull request #1364 from jlaanstra/user/jlaans/remove-guidgenerator-2
  • 918af6d Comments.
  • c25bb57 Scope Guid change down to static and factory interfaces.
  • 1ee556f Manually generate signatures for some PInvokes to handle SetLastError. (#1354)
  • 579db0a Include CsWInRT.exe in the inputs so MSBuild reruns the target if CsWinRT.exe got updated. (#1356)
  • 7a8c3b1 Simplify factory generated code. (#1355)
  • 5721184 Fix issues from dictionary caching (#1353)
See More
  • c52fafa Delete generated files before regenerating projection. (#1348)
  • a3d421e Use blittable signatures for Platform P/Invoke (#1346)
  • 546cffe Fix vftbl nested types (#1343)
  • ab4eb3d Move IIDDataField out of generic types (#1340)
  • 9374d15 Create COMException from IRestrictedErrorInfo instead of calling Marshal.GetExceptionForHR. (#1335)
  • 04a5903 Update CsWinRT version (#1332)

This list of changes was auto generated.

CsWinRT v2.0.3

12 Jun 18:48
0e91479
Compare
Choose a tag to compare

Changes:

  • 0e91479 Minor improvements to error info (#1331)
  • 0afca0f Fix issue with ABI delegates in collections for .NET Standard projection (#1330)
  • e644f9c Remove IReference cache and add various tests for IPropertyValue and GetRuntimeClassName. (#1313)
  • 6611d0e Return false if TryAppendTypeName fails for an array type. (#1312)
  • 8557f79 Update version (#1311)

This list of changes was auto generated.

CsWinRT v2.0.2

31 Mar 19:25
8a3a277
Compare
Choose a tag to compare

Changes:

  • 8a3a277 Fix non-generic ICollection interface calls not working (#1303)
  • 86d7976 Fix resolving IWeakReference from different context (#1301)
  • 609cda8 Bring over changes from the .NET 6 projection to .NET standard projection (#1298)
  • 8d8f1e1 Fix recurisve issue with covariant interfaces and fix IID being wrong for custom type mapped interfaces (#1297)
  • ea463c3 Add using for system name to event helpers file (#1288)
  • 579b61a Fix interface name returned for GetRuntimeClassName and fix build (#1290)
  • e3f6727 Replace . with _ when generating authored component's targets. (#1280)
  • b245e57 Add note on using AnyCPU for Authoring projects (#1273)

This list of changes was auto generated.

CsWinRT v2.0.1

16 Nov 02:10
3dcca78
Compare
Choose a tag to compare

Changes:

See More
  • f25f408 Update localization pipeline Windows version (#1251)

This list of changes was auto generated.

CsWinRT v2.0.0

17 Aug 04:23
fa7f556
Compare
Choose a tag to compare

Changes:

  • fa7f556 Error when targeting net5 (#1247)
  • 9eabe30 Address a couple more trim warnings (#1245)
  • 5d54cba Move from net5 to net6 (#1238)
  • 38c0133 Project experimental attribute (#1244)
  • d2b8054 Update to 2.0.0 (#1241)
  • e75a025 Make QueryInterface function pointer blittable (#1240)
  • 05f36a5 With IL trimming, missing types is a common scenario and can be nosiy if anyone has first chance exceptions enabled for TypeLoadException. Handling it without throwing exception. (#1227)
  • b18e32e Fix string comparison in source generator (#1239)
  • 73e1759 Small housekeeping changes for authoring projects (#1236)
  • d037354 Some more QoL improvements for diag tests (#1235)
See More
  • 2a3dc38 Some QoL improvements for diag tests (#1204)
  • fda23ea Move attributes used for authoring (#1234)
  • a59ba54 Enable marshaling of restricted error info to System.Exception for UnhandledException handler (#1228)
  • 227696b Make the functional tests single file to test single file support (#1226)
  • 06b377d Use AppContext.BaseDirectory (#993) [ #992 ]
  • d6fb9c4 First iteration of making CsWinRT compatible with IL trimming (#1224)
  • 1ad15ea Use latest windows vm, move condition up to save CI resources (#1225)
  • a1cee7c Bring over changes from #1219 and address a couple other errors. (#1223)
  • b8c50f3 Fail test if none found (#1221)
  • 28be51f Make CsWinRT build with VS 2022 (#1217)
  • e54aaea Update indirect dependencies on Newtonsoft.Json to 13.0.1 (#1218)
  • 58796c9 Remove CCW vtable logic from ABI interfaces which don't need them (#1216)
  • 2162566 Remove ComImport for IIntializeWithWindow (#1215)
  • 9304504 Custom IWindowNative for ILTrimming (#1212)
  • 8d78c8d Update get_testwinrt.cmd for VS22 support (#1209)
  • 728011d Update authoring.md (#1185)
  • b8ff5fc Bump Newtonsoft.Json from 12.0.1 to 13.0.1 in /src/Perf/ResultsComparer (#1208)
  • c181cb4 Update version number (#1198)

This list of changes was auto generated.

CsWinRT v1.6.5

02 Aug 17:26
Compare
Choose a tag to compare

This release of C#/WinRT is a tooling only release.

Changes:

  • 6352d4b Update indirect dependencies on Newtonsoft.Json to 13.0.1 (#1218)
  • 8a5e91c Bump Newtonsoft.Json from 12.0.1 to 13.0.1 in /src/Perf/ResultsComparer (#1208)
  • 6593525 Enable marshaling of restricted error info to System.Exception for UnhandledException handler (#1228)
  • 182d86a Use AppContext.BaseDirectory (#993) [ #992 ]
  • c2b7219 Move to 1.6.5

This list of changes was auto generated.