Releases: microsoft/CsWinRT
CsWinRT v1.1.2-prerelease.210208.6
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:
- 7ff08a8 Project reference support (preview) (#728)
- 213d9f4 Partial class support (#726)
- 6474aec Authoring bug fixes (#720)
- 9901802 updates to authoring.md (#716)
- c1d6d4f Fix authoring bugs (#712)
- e2b86a3 Fix sample. (#715)
- 8fcb3ee Allow using non WinRT attributes on authored types (#711)
- efd8d0d Reduce properties required to be set for authoring (#710)
- 435aa56 Add authoring sample (#690)
- 3621d0e Fix namespace diagnostic predicate (#709)
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
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
- 503fa19 Remove defunct roslyn feed for function pointer support (#661)
- 67aef89 Composable type support and bug fixes (#652)
- 21e070e Authoring: Diagnostic for private getter (#651)
- 29d8ec0 Update versioning scenarios error messages (#639)
- d1b538e Authoring Support: Add WinRT Diagnostics (#615)
- 88af9af Add docs on authoring components (#595)
- 27eebc9 Diagram and winrt.runtime background (#599)
- 58c12fe Add issue templates (#638)
- 69e9264 Authoring support for C# built-in types to WinRT types (#631)
- b89f261 Adding missing Marshaler array functions. (#630)
- 7e31b55 Disable VS tracking (#637)
- 1b4ff32 fix broken nuget links (#632)
- fa3b39e Move up to WinUI 3 Preview 3, remove workarounds in sample, centralize SDK version (#625)
- bd1fd97 Fix broken links documentation (#619)
- 9162cec Update README.md (#618)
- 0c7e84d Implement GCPressure (#446)
- b664ab6 Add versioning spec (#590)
- cfbc973 Repo source code directory restructure (#558)
- 2a0058e Updated build.cmd to fix build issues (#613)
- 74e1ad7 Handle spaces in paths for nuspec and build (#608)
- b6ebcbb Consumed inheritance test projects from TestWinRT and added basic test cases (#600)
This list of changes was auto generated.
CsWinRT v1.1.0
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
AssemblyVersionhas 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)
- 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)
See More
This list of changes was auto generated.
CsWinRT v1.1.0-prerelease.201111.6
Changes:
- 66da8e1 Update to .NET 5 RTM SDK. (#579)
- dc44457 Splitting AssemblyVersion from FileVersion. (#578)
- 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)
See More
This list of changes was auto generated.
CsWinRT v1.0.2-prerelease.201103.7
Changes:
- 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)
- 5b17869 Fixed IDictionary.Clear EntryPointNotFoundException
This list of changes was auto generated.
CsWinRT v1.0.2-prerelease.201103.4
Changes:
- 25e2ed4 Fixing read only dictionary lookup. (#536)
- 684f321 Ensure that xamlprecompile also adds generated sources (#552)
- 28e42b9 removed cruft causing warning (#556)
- 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.
CsWinRT v1.0.2-prerelease.201021.1
Release Notes
This update fixes a bug where references to DLL files were being removed by the compiler because they recorded true for being WinMD files. (#533)
Important: As this is a prerelease, it is required for any libraries using this version of CsWinRT to add a dependency on this version of the CsWinRT NuGet package. Without the added dependency, the .NET5 SDK will not resolve to the higher assembly version of WinRT.Runtime.dll (v1.0.2.3311).
Changes:
- 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.
CsWinRT v1.0.1
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.DateTimeis projected toSystem.DateTimeOffsetin C# and these types have different default values. (#285) - The
addevent accessor return type has changed fromSystem.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokentovoid. We no longer project theSystem.Runtime.InteropServices.WindowsRuntimetype, as it has been removed from .NET5. (#384) ref constprojection 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.
CsWinRT v0.9.0.201013.2
Release Notes
https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/0.9.0
This release includes the following updates:
- Fixes for scenarios where the default interface is not passed for custom projections (#470)
- Projection support for
ref const(#478) WinRT.WeakReferencehas been removed for .NET5. Instead, you can useSystem.WeakReference. (#487)
Changes:
- 27073d6 fixed regression in casting composable types (#491)
- 382e321 Remove WinRT.WeakReference for .NET 5 (#487)
- 3bab361 Improving perf of unwrapping object (#479)
- d6d4c2e Merge pull request #489 from microsoft/fix-idictionary-add
- 74fa23b Fix add and TryGet methods for net5 IDictionary
- f2bd242 Merge pull request #484 from microsoft/ujjwalchadha/fix-system-type
- bf26455 Merge branch 'master' into ujjwalchadha/fix-system-type
- cdd2440 Update SimpleMathProjection.csproj
- 626b1b0 Fix system.type's incorrect data when projecting to itself
- b3f5e65 Angzhang/testnuget (#483)
See More
- 5ff212a ref const projection support (#478)
- fc6da71 Improving error information for cswinrt tool (#480)
This list of changes was auto generated.
CsWinRT v0.8.0.201012.1
Release Notes
https://www.nuget.org/packages/Microsoft.Windows.CsWinRT/0.8.0
This version of CsWinRT is .NET5 RC2 compatible. It includes project tooling support for component authors (#451).
Breaking Changes
Refer to this list of .NET5 RC2 breaking changes.
Changes:
- ee9038a net5-windows* tfm support and a few minor fixes (#476)
- dcd2ff4 another (hopefully last) null pointer assignment (#477)
- 533fae5 Fix stack overflow due to incorrect null _inner fix (#473) [ #464 ]
- 73a2033 fixed regression in incremental debug builds sharing generated files with release (#471)
- 41c9cc7 add fallback loop for projected app types (#468)
- 40b6cb5 propagate assignment of _inner to base classes (#464)
- 46fe22b fixed crash on function pointer refactor - setting token to null (#467)
- 45c8f6c Update readme.md