CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
**Describe the bug** The exception is thrown after calling `FirstOrDefault` on the value returned by `VisualTreeHelper.FindElementsInHostCoordinates`. **To Reproduce** ```csharp var elements = VisualTreeHelper.FindElementsInHostCoordinates(...); var first = elements.FirstOrDefault(); ``` **Version Info**...
**Describe the bug** AOT generator does not generate glue code for generic classes inheriting from generic types, causing the process to crash when trying to use these classes. **To Reproduce**...
**Describe the bug** With AOT, GeneratedComClasses and GeneratedComInterfaces and with runtime marshaling disabled, I'm trying to create a COM class that derives from a C#/WinRT generated interface, for example IGeometrySource2D...
Determine whether issue still repros with recent version and investigate: https://github.com/dotnet/wpf/issues/4097
**Describe the bug** I have an existing library which used built-in support for WinRT. This library is used by both .NET Framework 4.x and .NET Core. In order to add...
**Describe the bug** I'm seeing extra `CA2256` warnings when building projections, which seems to be related to the `INotifyPropertyChanged` which my `IAppState` interface requires. It is not causing any issues...
This PR adds the following APIs: ```csharp namespace WinRT; public enum ClassContext : uint { InProcServer, LocalServer } public class IInspectable { public static T CoCreateInstance(in Guid classId, in Guid...
If the WinMD specifies `DeprecationType.Removal`, we still project, but set `ObsoleteAttribute` to error instead of warning. Information relating to version, contract and platform are irrelevant here since `ObsoleteAttribute` doesn't request...
**Describe the bug** I'm trying to create a .net 8 WPF app that uses Azure.Communication.Calling.WindowsClient. The app builds and runs, but fails to publish in VS. The release|x64 build succeeds...
**Describe the bug** API Confilct **To Reproduce** When I upgraded to CsWinRT CsWinRT 2.1.0-prerelease.240722.1, I compiled the WinUI 3 project and found that both Microsoft.UI.Colors and Windows.UI.Colors were referenced ...