Skip to content

CsWinRT v1.1.0

Compare
Choose a tag to compare
@Scottj1s Scottj1s released this 25 Nov 20:01
d9f1d21

Release Notes

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

C#/WinRT v1.1.0 aligns with the servicing .NET December 2020 Update, which is focused on fixing bugs that were found after .NET5 GA. The runtime and Windows SDK projection assemblies from this version have been inserted into the .NET 5.0.101 SDK. For a complete list of bug-fixes, see the Release 1.1.0 Milestone.

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

.NET reference packages:
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.19041.12
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.18362.12
https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/10.0.17763.12

Breaking Changes

  • WinRT.Runtime.dll AssemblyVersion has been incremented to v1.1.0.0. Note that building components with the updated servicing SDK may cause versioning issues if referencing projects are on an earlier version of .NET5 (e.g., .NET5 RTM).
  • Added System.Numerics.VectorExtensions static methods. (#548 )

Common Errors

If your applications target an earlier .NET SDK version than any of its dependencies, it is recommended to upgrade your .NET SDK to the latest version (.NET 5.0.101 SDK). The following errors/warnings may occur in this scenario, depending on how types are shared:

  • CS1705 Compiler Error: Assembly 'AssemblyName1' uses 'WinRT.Runtime, Version=1.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709' which has a higher version than referenced assembly 'WinRT.Runtime' with identity 'WinRT.Runtime, Version=1.0.1.33301, Culture=neutral, PublicKeyToken=99ea127f02d97709'
  • Warning MSB3277: Found conflicts between different versions of "WinRT.Runtime" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
  • System.IO.FileLoadException: 'Could not load file or assembly 'WinRT.Runtime, Version=1.1.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. The located assembly's manifest definition does not match the assembly reference.

The workaround for any of these errors or warnings is to upgrade your .NET SDK to the latest version (.NET 5.0.101 SDK).

Changes:

  • d9f1d21 Add vtable entry for covariant IEnumerable for WinRT types too. (#601)
  • cca8f40 Update StreamOperationsImplementation (#588)
  • ee1fe28 Update interop.md (#586)
  • 201147b Merge pull request #593 from microsoft/ujjwalchadha/fix-ibindablevector-code-gen
  • 921464c Fixed code generation issues with projecting implementation of IBindableVector
  • 3a28fb4 Remove (another) WinRT.Host.Shim.dll reference
  • 46ec074 Add WinRT.Host and WinRT.Host.Shim to Nuget (#582)
  • 02eaf84 Update sample for net5 GA (#577)
  • 66da8e1 Update to .NET 5 RTM SDK. (#579)
  • dc44457 Splitting AssemblyVersion from FileVersion. (#578)
  • See More
    • 0f8cec2 Adding Vector extensions for point and size. (#575)
    • ab6a5ec Use custom marshalers when type is erased with MarshalInspectable (#568)
    • 183fc48 Merge pull request #573 from microsoft/ujjwalchadha/fix-splittablemap
    • ecb5672 Fixed ConstantSplittableMap's Keys and Values to return read only collections
    • d00974b Merge pull request #564 from microsoft/ujjwalchadha/fix-native-to-managed-calls [ #553 ]
    • 0a17d76 Merge branch 'master' into ujjwalchadha/fix-native-to-managed-calls
    • cc14330 Added missing methods
    • e4c16dd replacement for WindowsRuntimeMarshal.GetActivationFactory (#572)
    • 58f57ac link com interop guide to readme (#571)
    • bd267cd update readme doc (#541)
    • c29da87 Code cleanup
    • 8619e44 Undid changes not required for the fix
    • 642c651 Merge branch 'master' into ujjwalchadha/fix-native-to-managed-calls
    • 84baa1f Merge branch 'ujjwalchadha/test-manual-projections' into ujjwalchadha/fix-native-to-managed-calls
    • 95a7e72 Show actual NuGet link (#566)
    • 688c4bd COM Interop guide (#563)
    • ba155f5 migrate from PackageES to ESRP CodeSign task (#565)
    • 730e742 Fixed #553 and further issues in native to managed calls
    • d050500 Merge pull request #559 from microsoft/fix-idictionary-clear
    • 4ac4147 Merge branch 'master' into fix-idictionary-clear
    • 8d6b661 fix issue with FromManaged returning an HSTRING reference, rather than allocating an HSTRING, causing crashes (#551)
    • 25e2ed4 Fixing read only dictionary lookup. (#536)
    • 684f321 Ensure that xamlprecompile also adds generated sources (#552)
    • 5b17869 Fixed IDictionary.Clear EntryPointNotFoundException
    • 28e42b9 removed cruft causing warning (#556)
    • 085ff21 Added tests for collections
    • a36c61e Adding tests for IBindable and IDictionary
    • fab6067 ensure robustness against malformed runtime class name (#534)
    • 892817e Add more tests for WindowsRuntimeBufferExtensions (#527)
    • af63025 Fixed removal of dll references that report IsWinmdFile == true (#533)
    • fc55163 Forget the solution extension - workaround worked before, but under a ".sln" folder (#532)
    • 1027a50 workaround for VS 16.8 SolutionDir bug (#529)
    • This list of changes was auto generated.