CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
**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...
**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...
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,...
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...
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...
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;...
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:...
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...
Evaluate performance of custom type mapping marshaling (both CreateMarshaler and FromAbi) and consider caching the lambda. See #568
Some ABI helper marshalers are stateless, can just use static implementations