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
trafficstars

**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**...

bug

**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**...

bug

**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...

bug

Determine whether issue still repros with recent version and investigate: https://github.com/dotnet/wpf/issues/4097

bug

**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...

bug

**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...

bug

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...

enhancement

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...

bug

**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 ![ccfd504559f510d2c5727a11b2e43355](https://github.com/user-attachments/assets/f7f44fd1-9bdc-416e-86cd-fb11ab15cf45)...

bug