CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
This PR includes just a couple of tweaks to `ExceptionHelpers.SetErrorInfo`: - Use `WindowsCreateStringReference`, since we can just pin the source text. - Avoid allocating a temporary `IObjectReference` object.
**Describe the bug** We encountered a weird bug where an AV can happen randomly at `PropertyChanged` event, where the code is: ```cs this.PropertyChanged(this, new(propertyName)); ``` The full stack trace: #...
### Describe the bug After updating the .NET 8 SDK from 8.0.304 to the latest 8.0.306 some or our projects targeting framework net8.0-windows10.0.19041 fail with error. We use Visual Studio...
**Describe the bug** Referencing multiple WinRT components from an app causes an MSIX build error: ``` Payload contains two or more files with the same destination path 'WinRT.Host.runtimeconfig.json'. Source files:...
**Describe the bug** Using a different TFM in an authored project causes a build failure when referenced by an app with a different TFM: ``` Payload contains two or more...
Closes #1569. Closes #667.
The AddPackageAsync, RemovePackageAsync, and StagePackageAsync methods in the PackageManager class occasionally fail to complete, causing the application to be indefinitely stuck in a waiting state. This issue is related to...
This PR adds the `WinRTManagedOnlyTypeDetails`, which can be used with `WinRTExposedTypeAttribute` to correctly suppress warnings from the AOT generator and also suppress the codegen for a type (regardless of whether...
**Describe the bug** When referencing a NuGet package that includes for further CsWinRT referencing a .winmd file in net8.0-windows10.X subsequent launches of the application will fail (i.e. Projection B references...
**Describe the bug** Windows.Storage.Pickers.FileSavePicker.FileTypeChoices.Add throw System.InvalidCastException: 'Specified cast is not valid.' with PublishAOT=true With PublishAOT=false everything works fine. 1. Create new WinAppSDK project 2. Add `10.0.22621.45` and `true` to csproj...