CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
This PR passes more IIDs explicitly to `As()` calls, which is faster and avoids `[DAM(PublicFields)]` on the `T`.
This PR enables 'TreatWarningsAsErrors' in all published projects, plus in the functional and authoring tests. I've also removed all AOT warnings being marked explicitly as errors, since the new property...
## Fixes #1546 This PR disables the NAOT native exports and restores the bundled native host for non-publish builds.
Since there aren't default templates for creating runtime components, one has to start with a regular class library and start modifying the .csproj from there. if you don't set the...
### Addresses https://github.com/microsoft/CsWinRT/pull/1555#issuecomment-2044041983. > [!NOTE] > Review with "show whitespace" *off*.
This PR tweaks some members of `IWinRTObject` following advice from @michalstrehovsky: - Seal all the "Fallback" methods and other helpers we only need from CsWinRT. This will avoid an interface...
Allows unsafe access to the underlying buffer data.
**Describe the bug** ``` WinRT.Runtime.dll!WinRT.ExceptionHelpers.ThrowExceptionForHR.__Throw|38_0(int hr = -2147467262) line 115 : D:\source\repos\microsoft\CsWinRT\src\WinRT.Runtime\ExceptionHelpers.cs(115) WinRT.Runtime.dll!WinRT.ExceptionHelpers.ThrowExceptionForHR(int hr = -2147467262) line 118 : D:\source\repos\microsoft\CsWinRT\src\WinRT.Runtime\ExceptionHelpers.cs(118) WinRTServerTest.dll!ABI.WinRTServer.ITestClassClassMethods.HelloAsync(WinRT.IObjectReference _obj = {WinRT.ObjectReference}, WinRTServer.BinaryDelegate func = {Method = {System.Reflection.RuntimeMethodInfo}},...
This PR adds a new api for getting the underlying managed array wrapped by a ```WindowsRuntimeBuffer``` instance as well as enabling the ```MemoryStream.TryGetBuffer``` api to return the underlying managed array...
**Describe the bug** I am trying to use the Embedding option in my C# application. This app uses `enable` and `Nullable`. I am getting a lot of errors/warnings, like these:...