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

# Proposal: Exception callbacks ## Summary In out-of-proc scenario, we can only see `COMException` without any message from the client if any unhandled exception happens on the server (see https://github.com/microsoft/CsWinRT/issues/1562)....

enhancement

Closes #1571 Codegen example: ```cs [UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvStdcall) })] private static unsafe int Do_Abi_GetPoint_2(IntPtr thisPtr, global::Windows.Foundation.Point* __return_value__) { global::AuthoringTest.BasicClass __this__ = default; global::Windows.Foundation.Point ____return_value__ = default; *__return_value__ =...

**Describe the bug** I would like to use CsWinRT in WPF the same way I use it in a WinUI project, but it doesn't build. **To Reproduce** See my minimal...

bug

**Describe the bug** No log.txt is generated despite me enabling CsWinRTEnableLogging **To Reproduce** 1. Clone example project at https://github.com/mmarczell-graphisoft/winrtbug 2. Build the WinUI project. 3. No log.txt is generated **Expected...

bug

**Describe the bug** When authoring WinRT Components, CsWinRT will replace the type set in attributes with `System.Type` in the generated WinMD. **To Reproduce** 1. Author a WinRT Component that has...

bug

**Describe the bug** As titled **To Reproduce** See the minimal repro here: https://github.com/roxk/CsWinRTHostThrow/tree/main Essentially, you call `DllGetActivationFactory` with a bogus name like "A.B", and then call again with a known...

bug
authoring

**Describe the bug** When authoring WinRT Components, CsWinRT will automatically generate the Override attribute for you. If I add my own Override attribute, I expect CsWinRT to not generate one...

bug
authoring

**Describe the bug** Out-of-process WinRT doesn't support passing null to an array parameter. While trying to do this, an exception will be thrown. ``` System.Runtime.InteropServices.COMException (0x800706F4) at WinRT.ExceptionHelpers.g__Throw|39_0(Int32 hr) at...

bug

**Describe the bug** When calling to an out-of-process WinRT server, any exceptions from the server will become a `COMException` without any exception message on the client. **To Reproduce** 1. Clone...

bug

Microsoft.Windows.CsWinRT.targets defines a property [`CsWinRTAotExportsEnabled`](https://github.com/microsoft/CsWinRT/blob/staging/AOT/nuget/Microsoft.Windows.CsWinRT.targets#L26): ```msbuild true false ``` However, `PublishAot` being true does not indicate that a build was actually an NAOT build, instead it indicates that a publish...

bug