-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Built-in support for WinRT is removed from .NET 5.0 #18875
Comments
Would it be helpful to include the typical error(s) that code could produce that is encountering this break? Eg., what was in the two issues you looked at this morning. That might make it much easier to find this page once you've hit the problem. Also, do we have sufficient help for someone making the jump to the new toolchain? |
@gewarren This change was made in preview 6, not preview 5. I mean .NET 5.0 Preview 6. I submit that your team may have different preview numbers. |
Yep. We have had someone ask a question already: dotnet/runtime#35318 (comment). |
Ok thanks. I'll delete my original comment just so there's no confusion. (We don't use different preview numbers.) |
* fixes #18875 * add interop to toc
Built-in support for WinRT is removed from .NET 5.0
Built-in support for consumption of WinRT APIs in .NET Core is being removed. This possibility has been announced in dotnet/runtime#35318.
The removal was done in dotnet/runtime#36715.
Version introduced
.NET 5.0
Old behavior
Consumption of WinMDs by CoreCLR was possible. This permitted activation and consumption of WinRT types.
New behavior
Direct consumption of WinMDs is no longer possible by CoreCLR.
Examples of failures that may now occur:
Attempting to reference a no longer supported WinRT related assembly:
Activation of a WinRT class will result in the following:
Reason for change
Recommended action
Remove references to the Microsoft.Windows.SDK.Contracts package and replace them with references to the Microsoft.Windows.SDK.NET package.
Additionally, the recommendation is to use the C#/WinRT tool chain to generate or customize WinRT APIs and types in .NET 5.0 and beyond.
Category
Interop
Affected APIs
System.Runtime.InteropServices.WindowsRuntime
System.Runtime.WindowsRuntime
Issue metadata
The text was updated successfully, but these errors were encountered: