CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

C# language projection for the Windows Runtime

Results 226 CsWinRT issues
Sort by recently updated
recently updated
newest added

Hello. ## Summary In an architecture where we have a WinUI 3 C++ application and a CsWinRT component dependency, we would like to have a simple way to deploy it...

enhancement

**Description** I'm trying the "hello world" scenario of consuming a C++/WinRT Runtime Component using a C# console application. The compilation succeeds and the projection types get generated with no problems,...

bug

**Describe the bug** I am trying to implement background tasks for .NET MAUI apps. In the past Xamarin Forms used UWP, but now that Maui is based on WinUI3, I...

bug

**Describe the bug** Even though WinRT.Runtime includes the Source Link GitHub package, the integration is completely broken. This means debugging WinRT.Runtime is a massive pain without embedding or building the...

bug

This PR fixes the generated `IBufferByteAccess` addition to pass the IID to `FromAbi`. It also exposes the `IBuffer` and `IBufferByteAccess` IIDs as constant RVA fields, both so they can be...

trimming
AOT

This makes them consistent with `FromAbi` not taking an IID, which is also obsolete and not safe.

performance
breaking change
trimming

- Incrementing the assembly version to reflect what it should actually be - Fixing AsAsyncOperation and similar async scenarios where we weren't previously generating the vtable for generic classes implementing...

Small trick to avoid a closure class, since this delegate is only capturing the original delegate itself.

performance
gc

This PR adds the 'CsWinRTUseUtcDateTimeOffsetMarshalling' switch to opt-in into standard UTC `DateTimeOffset` marshalling.

enhancement
trimming

**Describe the bug** The below exception occurred in `TypeNameSupport.ResolveGenericType` when `PublishAot` is set to `true` but not running under NativeAOT. ``` System.NotSupportedException: 'Cannot provide generic type from 'Windows.Foundation.IAsyncOperation`1'.' ``` **To...

bug
AOT