CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

C# language projection for the Windows Runtime

Results 340 CsWinRT issues
Sort by recently updated
recently updated
newest added

### Description COMExceptions thrown by WinRT code often times only have an empty error message. This greatly impacts the developer experience, especially for beginners. To understand the error, the HResult...

### Summary When you add the `[GeneratedBindableCustomProperty]` the generator creates all the necessary code to make that class bindable when using AOT compilation. I have a sample class that contains...

for example... `012Numbers And Spaces` Results in.... 'global::WinRT' is a namespace but is used like a type 'WinRTExposedTypeAttribute' does not contain a constructor that takes 3 arguments The name 'umbers_And_SpacesVtableClasses'...

### Description Bug: Can't directly convert WinRT.IInspectable to Windows.ApplicationModel.LaunchActivatedEventArgs ##### --------------------------- 不能直接将 WinRT.IInspectable 转换为 Windows.ApplicationModel.LaunchActivatedEventArgs ### Steps To Reproduce 1. Create a new desktop bridge project, and add a desktop...

Once #1898 gets merged to its target branch, I will change the target branch for this PR to my working branch: user/chenss3/udkauthoring. This is apart of the bigger change to...

Adds a new -abstract_class flag that will be used for when we modify the projections generation This is a PR from my working branch my feature branch. Tested by verifying...

This PR removes calls to `RuntimeHelpers.RunClassConstructor` when definitely not needed. Pretty much the same optimization we did in the XAML compiler.

performance
authoring
trimming

### Description `EquatablePortableExecutableReference` calls `.GetMetadataId()` to determine if two references are the same: https://github.com/microsoft/CsWinRT/blob/b1733e95c6d35b551fc8cf6fe04e2a0c287346dd/src/Authoring/WinRT.SourceGenerator/RcwReflectionFallbackGenerator.cs#L334 However, in the IDE it's possible that a reference is a `MissingMetadataReference`. This will unconditionally throw...

### Description If a WinRT class has a versioned / overloaded function, generating the projections results in error CS0540. The projection should be able to properly handle this scenario. Sample...

### Describe the bug Hi Team, I have prepared the sample with the custom control by using the AOT support. In Custom sample, I have used the ComboBox ItemsSource and...