Skip to content

CsWinRT v1.0.1

Compare
Choose a tag to compare
@Scottj1s Scottj1s released this 20 Oct 17:28
0329a4c

Release Notes

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

C#/WinRT v1.0 is aligned with the .NET 5.0 GA Release and corresponding .NET 5.0.100 SDK. The Windows SDK projections and runtime from this version of CsWinRT are included in the .NET 5.0.100 SDK. A full list of bug-fixes and changes for this version can be found in the .NET5 GA Milestone.

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

.NET reference packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.10
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.10
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.10

Breaking Changes/Known Issues

  • Calling any of the RuntimeReflectionExtension methods is likely to cause issues. The runtime type of a projected class now carries around some state information and helper methods, and should not be dynamically reflected on.
  • Some WinRT types may have differences in default values when projected. This may raise issues if relying on default values. For example, Windows.Foundation.DateTime is projected to System.DateTimeOffset in C# and these types have different default values. (#285)
  • The add event accessor return type has changed from System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken to void. We no longer project the System.Runtime.InteropServices.WindowsRuntime type, as it has been removed from .NET5. (#384)
  • ref const projection support has been added. (#478)

Dependent Packages

The assembly versions for the .NET5 RTM SDK reference package are as follows:

  • WinRT.Runtime.dll: v1.0.1.33301
  • Microsoft.Windows.SDK.Net.dll: v10.0.*xxxxx*.10 (19041, 18362, and 17763 SDK versions are supported)

Note: If your applications target an earlier .NET SDK version than any of its dependencies, it is recommended to update your .NET SDK version. If you do not update your .NET SDK version and any dependencies use WinRT projected types, this may result in build or runtime errors.

Changes:

  • 0329a4c Fix type marshaling. (#528)
  • 5b1e5e7 Added short circuit for zero count (#526)
  • 6d83992 Fix linq casts. (#524)
  • cca14ad Fix capacity checks in BufferExtensions (#504)
  • 0672c31 better authoring fix (#523)
  • 17c7f1d fixed authoring break from vtbl optimization, disabled api tests failing on build agent (#522)
  • 070e09a Merge pull request #512 from microsoft/ujjwalchadha/update-additional-projections
  • 3afc9c0 Merge branch 'master' into ujjwalchadha/update-additional-projections
  • 295aaa7 Fix additional classes to support netstandard
  • c4663f5 Don't generate a Vftbl nested type for non-generic interfaces (.NET 5 only) (#492)
See More
  • 9e066cf Merge pull request #517 from microsoft/benkuhn/api-tests
  • 0f67091 Merge branch 'master' into benkuhn/api-tests
  • ae43cd8 Improve handling of Windows Metadata sources, add error diagnostic (#516)
  • ebef014 std::filesystem::canonical fails when running on a RAM drive (#515)
  • 9680367 disabling geoloc test on build servers as well. x64-only issue only repros on build servers, has unclear cause
  • 40d4144 Fix tests to contain generic path
  • dd475e9 Merge branch 'master' into ujjwalchadha/update-additional-projections
  • bf8b970 covering broader range of failures modes that occur based on configuration in geoloc tests
  • 693f79a Merge branch 'benkuhn/api-tests' of https://github.com/microsoft/CsWinRT into benkuhn/api-tests
  • 5ef7fdf allowing geolocation test to degrade gracefully in automation if service unavailable
  • 1223a19 Merge branch 'master' into benkuhn/api-tests
  • b45ee19 Merge pull request #518 from microsoft/benkuhn/remove-anycpu
  • 6f8b23f removing unused / unsupported anycpu option for unittest project
  • df2a7f3 dead code cleanup
  • 79c2662 adding Windows API coverage
  • f91e962 Update additional projections to use IDIC
  • 5bd1891 change checks on the return type of GetRuntimeClassName to check for empty or null (#511)
  • 02f5615 Make our auto generation targets compatible with source link and add source link to winrt.runtime. (#505)
  • 11c5d3b Fixing authoring tests and added them to build.cmd (#501)
  • 42d1760 Add Buffer Length Check in ToArray and CopyTo (#502)
  • 23af004 update usage doc (#500)
  • 5d10668 Fix comparison to intPtr.Zero. The current implementation is allowed by a Roslyn bug that's preserved for backcompat. (#499)
  • f9e64eb Merge pull request #495 from microsoft/ujjwalchadha/345-fix-typename
  • 74f41d1 Fix TypeName.Name to return full assembly qualified type name for custom c# types

This list of changes was auto generated.