CsWinRT
CsWinRT copied to clipboard
C# language projection for the Windows Runtime
**Describe the bug** An MSB3271 error/warning results when building a projection for AnyCPU while referencing a native C++/WinRT component. Error message: *Error MSB3271 There was a mismatch between the processor...
Repro sample here: https://github.com/Scottj1s/ReunionCsAppWithCppRC/blob/22a8792d54a15c3ace13e131808e63300635a7f0/App3/App3/App3.csproj#L6 CsWinRTWindowsMetadata should default to TargetPlatformMinVersion. And CsWinRTIncludes should default to enabling anything which is not expressly in CsWinRTExcludes (Microsoft, Windows).
We had an issue where a couple of new types in WinRT.Runtime didn't get the `#if EMBED` treatment needed. We should add an analyzer (or better a codefix) to WinRT.Runtime...
## Summary C++/WinRT provides ```winrt_activation_handler ``` to allow hooking activation. This is useful for testing. ## Rationale * Useful for testing. * Matches C++/WinRT functionality.
WinRT APIs related to packaging return a PackageVersion structure for reporting version info which can't be directly passed to code that expects System.Version, so consider adding an implicit conversion on...
I trying to run WinRT application using NativeAOT, using this sample https://github.com/dotnet/runtimelab/issues/1453. If I start using `ToastNotificationManager.GetTemplateContent` then NativeAOT start complaining about usage of `S.L.E.Expression.GetDelegateType`. Error which i'm seeing comes...
In various places in .NET, the runtime calls SynchronizationContext.Send. For example in the SystemEvents class Send is used: https://github.com/dotnet/runtime/blob/6de7147b9266d7730b0d73ba67632b0c198cb11e/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft/Win32/SystemEvents.cs#L1326 This means that subscribing to events on the SystemEvents class from...
For example, HttpDiagnosticProvider Will need to decide what the attribute would look like (e.g. include DeviceName and OS version) and how it would potentially work with other extension SDKs. For...
There are a few COM interop APIs that aren't UniversalAPIContract APIs. This includes `IPrinting3DManagerInterop` (in the Printing3DContract) and `IProtectionPolicyManagerInterop` (in Desktop extensions). It may be possible to implement these with...