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

**Describe the bug** If a C++/WinRT IDL has a runtimeclass which declares a `ToString()` method, the cswinrt will not be able to compile it. **To Reproduce** 1. In a IDL...

bug

I created a C# WinRT component (say CustomClassLibrary.dll) and I want to activate it with manifest-free activation from cppwinrt. The problem is that C# component don't have the DllGetActivationFactory inside...

enhancement

**Describe the bug** Assigning DateTimeOffset.MaxValue to a WinRT DateTime property and then tryin to read the value throws ArgumentOutOfRangeException in locales with positive UTC offset. **To Reproduce** The following code...

bug

**Describe the bug** When using the CopyBuffer() method of a SoftwareBitmap to copy the pixels to a byte array the app crashes with an "Invalid cast" exception if trimming is...

bug
trimming

**Describe the bug** Custom exception messages set in C++/WinRT hresult_error do not appear on C# side. **To Reproduce** In C++/WinRT, throw an exception with a custom message: `throw winrt::hresult_error(0xC00D1001, L"Test");`...

bug

**Describe the bug** Our project has encountered several flaky behaviors with IIDOptimizer.exe: 1. If .NET 5 is not installed, the exe fails to run, but the build succeeds anyway. 2....

bug

# Proposal: Support direct project references instead of NuGet for fast development loop ## Summary Using CsWinRT, it should be possible to add a winrt project reference to a test...

enhancement

Many of these packages are old beta packages that have long been superseded

**Describe the bug** I created C# projection from a C++/WinRT component such as in this tutorial: https://learn.microsoft.com/en-us/windows/apps/develop/platform/csharp-winrt/net-projection-from-cppwinrt-component and had the class in the .idl file inherit such as: `runtimeclass SimpleMath...

bug

The current test coverage of CsWinRt seems to exclude some important scenarios. There's a need for a robust testing plan and test cases that can cover most of the APIs....

testing