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

This is to solve #780. This PR allows generating projections for all referenced WinRT projects, without any manual editing of the csproj file. Just add a reference to CsWinRT, add...

**Describe the bug** WinRT.Runtime is enabled for trimming, but not all APIs are correctly annotated. There's quite a few that are missing annotations, causing hundreds of warnings when building the...

bug
trimming
AOT

**Describe the bug** Crash during the execution of custom effects implementations (from the `IBasicVideoEffect `or `IBasicAudioEffect `interfaces) in a WinUI 3 application. Some properties get executed, such as `IsReadOnly `and...

bug
needs-author-feedback

**Describe the bug** CsWinRT is currently generating managed function pointer signatures in generated stubs, eg.: ![](https://user-images.githubusercontent.com/10199417/232229793-7f61bdae-c602-444a-873f-a58804149d9a.png) These are some generated signatures for Win2D APIs created with CsWinRT 2.0.2. Note those...

bug
AOT

# Proposal: [your title here] Please simply wrap the DataTransferManager interop class ## Summary Please simply wrap the DataTransferManager interop class At present in desktop applications, if we want to...

enhancement

**Describe the bug** Using WinAppSDK 1.3 stable and projection assemblies using CsWinRT 2.0.2, publishing a trimmed apps results in this warning: > "C:\...\Test.csproj" (restore;publish target) (1) -> (_RunILLink target) ->...

bug

### Describe the bug See the attached repro project. When getting the activation arguments in Main (App.xaml.cs), the application will crash with a System.NullReferenceException. Please note that this only happens...

bug

**Describe the bug** This error in the source generator did not result in a build failure. The resulting binary worked fine for a simple use case, but failed to work...

bug
authoring

# Description - `CsWinRTIncludesPrivate` property projects contracts as `public` instead of `internal` # To Reproduce ## Example.idl ```cs namespace Test { [contractversion(6)] apicontract MyContract{}; } ``` ## Projection.csproj ```xml Test.MyContract;...

bug

I've been working with CsWinRT more recently, and thinking about how it could be made AOT-safe. One of the main issues is that CsWinRT has to use several methods that...

AOT