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

Using a custom Button type from a C#/WinRT, the app will build and run, but clicking the custom button will cause an error "Specified cast is not valid". Interestingly, this...

bug
authoring

WinRT Component with WinUI 3 types used in a C++ WAP template doesn't work. Seems the issue is in the generated appx.manifest.

bug
authoring

> This issue is a duplication of the https://github.com/microsoft/microsoft-ui-xaml/issues/4111 that @stevenwdv created and it seems a C#/WinRT projection issue. Casting a collection of `StorageFile`s to a collection of `IStorageFiles` and...

bug

- new WinUI projection - update WinUIDesktopSample to use new WinUI projection - update objectlifetime test

bug
testing

To help with diagnosing memory leak issues and how memory management works across .NET and WinUI

documentation

**Describe the bug** The IIDOptimizer is producing bad IL code for a type in WinRT.Runtime, related to the encoding of a field for a method of the type. **To Reproduce**...

bug
performance

**Describe the bug** https://github.com/microsoft/CsWinRT/blob/205d2e4233fe7d44cda0192bd09c01e66a8e7ffc/src/cswinrt/strings/WinRT.cs#L98 That code does not work when publishing your app as `true`. See https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file/warnings/il3000. Assembly.Location returns `string.Empty` in a single file. You later end up with a...

bug

In production, reported via AppCenter, I get a COMException with HRESULT **E_FAIL** in a method creating a MenuFlyout. I have pasted a shortened version below: ```csharp private MenuFlyout CreateZoneContextMenu(Zone zone)...

bug

**Describe the bug** When a CsWinRT component is referenced by an app and they both share a reference to ClassLibraryA, the build will fail with Error MSB4018: The "GenerateDepsFile" task...

bug
authoring
pri-2

**Describe the bug** With CsWinRT 1.6.1 a .Net Standard 2.0 embedded projection for `Windows.ApplicationModel.AppService.AppServiceConnection.OpenAsync` can now be generated correctly and invokes the WinRT ABI successfully but fails to project the...

bug