CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

C# language projection for the Windows Runtime

Results 340 CsWinRT issues
Sort by recently updated
recently updated
newest added

Hi, I have some IDL file which contains some classes which are defined as [bindable]. When I try to generate the bindings for said IDL file for .net 6, it...

needs-author-feedback

**Disclaimer** Before anyone decides to tell me in the comments that NativeAOT is currently not supported, I know that. **Describe the bug** `Windows.System.DispatcherQueue.TryEnque` throws an exception in a NativeAOT program....

bug
AOT

**Describe the bug** When I use PdfDocument in WPF, the process remains even after closing the app. **To Reproduce** - Run PdfPage.RenderToStreamAsync() no longer terminates the app. - GC.Collect() increases...

bug

**Describe the bug** Often in .NET we get pretty unhelpful HResult errors. Example: ![image](https://user-images.githubusercontent.com/1378165/115119926-a9897700-9f5f-11eb-99e6-02bad7991702.png) [Apparently](https://github.com/microsoft/ProjectReunion/issues/593#issuecomment-821727384) this means `ERROR_MRM_RESOURCE_TYPE_MISMATCH`. It would be nice with better more helpful/meaningful error messages thrown, instead...

**Describe the bug** CsWinRT uses runtime dynamic il emit to generate delegate types which is not supported by NativeAOT: https://github.com/microsoft/CsWinRT/search?q=GetDelegateType For example, CsWinRT produces this code for `ABI.Windows.Foundation.IAsyncOperation.Vftbl`: ```csharp unsafe...

bug
AOT

See https://github.com/microsoft/CsWinRT/pull/1240. We should consider doing the same in our generated and manual projections of types where we have function pointers using out / ref.

enhancement
performance

Define all Windows SDK versions (e.g., 10.0.19041.0) in the root directory.build.props, so we can upgrade everything at once (including embedding it in TFMs and passing it to nuspecs)

enhancement
code cleanup

This is needed as a result of the changes introduced with [this PR](https://github.com/microsoft/CsWinRT/pull/564).

enhancement
code cleanup