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

**Describe the bug** How to implement more unknown COM interfaces? **To Reproduce** Currently WinRT transition to the COM interface there are two types, one is based on the IUnknown COM...

bug

Repro: instance.SetCharIterable(['c']); Will need to investigate how to get a vtable generated based on the static declaration as a fallback if there is no vtable for the runtime type.

bug
AOT

**Describe the bug** There are issues related to the CsWinRT/AOT auto-generated code to proper find the auto-generated code done by CommunityToolKit for `[ObservableProperty]`, which leads to runtime errors since there...

bug
AOT
external

**Describe the bug** Hope to provide a CsWinRT Projection for WinUI 2 **To Reproduce** We hope to provide a CsWinRT Projection for WinUI 2. At present, we found that CsWinRT...

bug

I have a project with the following `.csproj` file: ```xml net8.0-windows10.0.19041.0 enable 10.0.19041.0 10.0.19041.0 x64;ARM64 true WindowsPackageManager.Interop disable 10.0.19041.0 Microsoft.Management.Deployment all runtime; build; native; contentfiles; analyzers NU1701 true none false...

bug

**Describe the bug** We have a contract where version 2 is experimental. The CsWinRT generated code produces code that itself generates a warning because the ABI interface has [Experimental] on...

bug

**Describe the bug** Build fails with the following during code generation: CSC : warning CS8785: Generator 'SourceGenerator' failed to generate source. It will not contribute to the output and compilation...

This PR adds the "CsWinRTDynamicallyInterfaceCastableExclusiveTo" option, which allows generating IDIC supporting code for `[exclusive_to]` WinRT interfaces. This enables casting existing projected types to them and using their APIs normally.

enhancement

There are 2 known issues related to the source generator included in the Windows SDK projection package referenced when using the Windows OS version target framework in the upcoming .NET...

bug

**Describe the bug** After building my WinForms app and running crossgen, many of my assemblies are much larger when `CsWinRTAotOptimizerEnabled` is not set to `false`. That source generator is emitting...

bug