CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
I authored a component in C#/WinRT. It has a class which exposes a .NET DateTime property. When I went to consume that component from C++/WinRT, it didn't work. C++ complained...
C#/WinRT, .NET 7 component created. When consumed by a C++/WinRT app, I get MSB5016 on build: Severity Code Description Project File Line Suppression State Error MSB5016 The name "Microsoft.Windows.MidiAddAuthoredWinMDReference" contains...
# Proposal: Provide MemoryBuffer.GetAccess() that returns IMemoryBufferByteAccess ## Summary In https://github.com/microsoft/Windows-universal-samples/blob/main/Samples/AudioCreation/cs/CustomEffect/CustomEffect.cs we see a sample of extracting raw bytes from an audio sample, obtained from a `MemoryBuffer`. This pattern is...
Referencing C#/WinRT NuGet package from C# UWP apps gives MSBuildProjectExtensionsPath compile error
Trying to reference a local C#/WinRT nuget package from a C#/UWP app. Error: Severity Code Description Project File Line Suppression State Error The MSBuildProjectExtensionsPath MSBuild property could not be found...
The C# compiler has special support for [Experimental]: ![image](https://user-images.githubusercontent.com/12356643/183171764-5276e428-e8d5-431f-92ec-1da66f554ac7.png)
### Describe the bug When a custom exception is triggered, the correct exception type cannot be obtained in the unhandled exception event. ### Steps to reproduce the bug Attach the...
With IL trimming, types not being found to create an RCW can become a common thing and there are various fallbacks to handle that like using the base type. Today,...
I've tried implementing IBasicVideoEffect with CsWinRT but I can't get it to activate with `new VideoEffectDefinition("IBasicVideoEffectSample.MyVideoEffect");`. Any help will be appreciated! Just using the nuget reference I get `System.Runtime.InteropServices.COMException: 'Class...