Skip to content

Releases: microsoft/CsWinRT

CsWinRT 2.1.3

10 Sep 19:57
b55ca83
Compare
Choose a tag to compare

This is a minor release with a set of fixes for reported issues since 2.1.1.

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

What's Changed

Full Changelog: 2.1.1.240807.2...2.1.3.240909.1

CsWinRT 2.1.1

26 Aug 21:47
ad6c15a
Compare
Choose a tag to compare

This is a stable release of C#/WinRT focused on bringing .NET AOT support and improved trimming support to both the runtime and generated projections. This version requires the following Windows SDK projection package from below or later which can be consumed by setting the below property in your C# project file or by updating to September's .NET SDK servicing build once available.

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

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

.NET Windows SDK targeting packages for .NET 6:

<WindowsSdkPackageVersion>10.0.xxxxx.38</WindowsSdkPackageVersion>

https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.26100.38
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22621.38
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22000.38
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.20348.38
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.38
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.38
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.38

.NET Windows SDK targeting packages for .NET 8:

<WindowsSdkPackageVersion>10.0.xxxxx.41</WindowsSdkPackageVersion>

https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.26100.41
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22621.41
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22000.41
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.20348.41
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.41
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.41
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.41

As part of these Windows SDK projection builds, there were several types in the Windows.UI namespace that were moved from the WinUI projection to the Windows SDK projection to avoid long-term type conflict issues. Most of them have Microsoft.UI versions of them which are used in WinUI scenarios. There are a couple used in WinUI scenarios such as TextDecorations, BindableAttribute, and ContentPropertyAttribute. If you do use one of them and run into a type conflict issue between Microsoft.WinUI and Microsoft.Windows.SDK.NET, it can be resolved by moving to Microsoft.WindowsAppSDK 1.6 or by using the WindowsSdkPackageVersion property to use an older version of the Windows SDK projection such as .34 if you can't move forward your Microsoft.WindowsAppSDK version yet.

Thank you again to @dongle-the-gadget, @Gaoyifei1011, @hez2010, @jevansaks, @Jeremy-Price, @jlaanstra, @jkoritzinsky, @Sergio0694 for your community contributions to this significant release and for everyone who reported issues with the previews.

What's Changed

Read more

CsWinRT 2.1.0-prerelease.240801.1

02 Aug 19:30
b1ecedd
Compare
Choose a tag to compare
Pre-release

This is a prerelease version of C#/WinRT with more bug fixes and improvements to our .NET AOT support. Note that in this release that the WinRT.BindableCustomProperty attribute added in last week's prerelease was renamed to WinRT.GeneratedBindableCustomProperty based on early feedback. 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.37-preview</WindowsSdkPackageVersion>

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

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

What's Changed

  • Fix property initializers and derived ObservableCollection by @manodasanW in #1686
  • Fix merged component support in non-WinRT component projects by @Sergio0694 in #1680
  • Fix nullable scenarios when xaml asks for type and fix vtable for event handlers by @manodasanW in #1684
  • Remove redundant items in .targets by @Sergio0694 in #1687
  • Fix source generator for exception types and fix is operator by @manodasanW in #1682
  • Fix errors when consumers are using InternalsVisisbleTo by @manodasanW in #1688
  • Fix GetGuidSignature for event args by @manodasanW in #1692
  • Fix regression in IBindableIterator by @manodasanW in #1690
  • Rename BindableCustomProperty attribute to include Generated prefix by @manodasanW in #1691
  • Updating manifest which was forgotten when type was added by @manodasanW in #1694
  • Fix scenario where generic implementation type doesn't have type factory intialized by @manodasanW in #1693
  • Guard against potential null for RCW type by @manodasanW in #1695

Full Changelog: 2.1.0-prerelease.240722.1...2.1.0-prerelease.240801.1

CsWinRT 2.1.0-prerelease.240722.1

24 Jul 01:54
f8cb6a0
Compare
Choose a tag to compare
Pre-release

This is a prerelease version of C#/WinRT with bug fixes and improvements to our .NET AOT support that we shipped in last month's prerelease. This version requires the updated 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.37-preview</WindowsSdkPackageVersion>

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

.NET Windows SDK targeting packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.26100.37-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22621.37-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.22000.37-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.20348.37-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.37-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.37-preview
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.37-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

What's Changed

New Contributors

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

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.