CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
# Proposal: The AOT source generator should output a warning instead of a message if the partial keyword is missing ## Summary To make an application AOT compatible, the partial...
**Describe the bug** Found this issue when working on [Dev Home](https://github.com/microsoft/devhome) where we're authoring a component that references other C# projects. Pull request where this issue repros: https://github.com/microsoft/devhome/pull/3134 Mitigation: https://github.com/microsoft/CsWinRT/issues/1327#issuecomment-1549129528...
**Describe the bug** Microsoft Documentation needs to be updated in the future 目前在调用 DataTransferManager 类中的一些方法时,还是与旧的 Built-in Com 接口操作,希望未来 CsWinRT 2.1.0 with NativeAOT 正式发布时,更新 c# 调用 WinRT 互操作接口的调用 At present, some...
When attempting to author a C#/WinRT component that contains an interface that derives from both `IList` and `IList` (where `T` is a specific type, e.g. `string`, since WinRT does not...
**Describe the bug** Calling BitmapImage.SetSourceAsync() with a .net file stream using stream.AsRandomAccessStream() leads to WinRT originate error - 0x80004002 : 'Specified cast is not valid.' **To Reproduce** Code similar to...
**Describe the bug** Did you forget to generate a 26100 Windows SDK Projection for CsWinRT 2.1.0? 是否忘记生成 26100 适配 CsWinRT 2.1.0 的 Windows SDK Projection? **To Reproduce** See screenshots **Expected...
**Describe the bug** `System.Collections.Specialized.ReadOnlyList` fails to cast to IList and it makes it impossible to raise `INotifyCollectionChanged.CollectionChanged` event from user code. **Version Info** 2.1.1 **Additional context** Sorry for opening a...
**Describe the bug** The `RegisterForSyntaxNotifications` API provided to `ISourceGenerator` produces an unavoidable, catastrophic performance penalty. Source generators operating on syntax need to be carefully rewritten implementing `IIncrementalGenerator` to avoid this...
Source generator generates code using unsafe even if EnableUnsafeBlocks isn't enabled. We probably should check if it is not enabled and given a better diagnostic asking EnableUnsafeBlocks to be enabled....
**Describe the bug** CsWinRT throws when passing a Dictionary to a WinRT method that expects a `IReadOnlyDictionary` as parameter. Wrapping the dictionary in its own non-generic type works around the...