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** When a namespace gets removed from a WinMD of a native component, cswinrt doesn't cleanup previous generated projection. The generated C# code is still included and causes...

bug
pri-2
tooling

**Describe the bug** The bug is an "invalid comparator" in the sorting of include/excludes, done at the start of cswinrt.exe **To Reproduce** Build cswinrt vcxproj for Debug, and call it...

bug
pri-2
tooling

Recently, an update to CsWinRT required an increment to the AssemblyVersion of winrt.runtime.dll. Winrt.runtime.dll is distributed in the Microsoft.Windows.SDK.Net.Ref framework package, which is in turn integrated into the .NET SDK,...

enhancement
tooling

The warnings below, from building the WinUITest project, are the only remaining issues related to inheritance support. Probably best to explicitly implement all collisions, versus picking a 'new' winner. 2>Generated...

bug
pri-2

This issue is related to the diagnostic work in the cswinrt source generator, used for component authoring. Today we check for invalid types, but there could be a valid, non-WinRT...

authoring

When using C#/WinRT, how developers do COM interop has changed a bit. Before: ```csharp Guid guid = new Guid(ISurfaceImageSourceNative); var imageSource = new MyImageSource(); IntPtr pointer = Marshal.GetIUnknownForObject(imageSource); IntPtr pOut;...

enhancement

Hi all, I'm creating an API with IDL 3 that has the following signature (or a similar one): `void Process(UInt8[] value);` With C++/WinRT (2.0.210403.2) I have a nice `array_view` API:...

enhancement
question
performance
AssemblyVersion change

Minimize heap allocations for marshalers by eliminating explicit try/finally and adopting ref structs with non-IDisposable Dispose and 'using var ...' pattern, as well as passing marshalers to FromAbi by ref...

enhancement
performance

Evaluate performance of custom type mapping marshaling (both CreateMarshaler and FromAbi) and consider caching the lambda. See #568

enhancement
performance

Some ABI helper marshalers are stateless, can just use static implementations

enhancement
performance