-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
.NET 8 RC1 can not compile with Windows app sdk and CsWinRT #91981
Comments
Tagging subscribers to this area: @dotnet/interop-contrib Issue DetailsDescription.NET 8 RC1 can not compile with Windows app sdk and CsWinRT In.net8 RC1, the Marshal.QueryInterface() method is defined from Reproduction StepsIn describe bug Expected behaviorIn describe bug Actual behaviorThe Marshal.QueryInterface() method should be compatible with both ref and in arguments Regression?No response Known WorkaroundsNo response Configuration.NET 8 RC1 Other informationNone
|
This seems like a breaking change introduced in #89736. @tannergooding I don't see any mitigations for the above change. There should have been a breaking change discussion, I wasn't involved so am unclear how to frame this to users. |
@Gaoyifei1011 The change to |
OK.Thanks for the quick fix |
@Gaoyifei1011 could you please see #91983 (comment). Specifically, I'm interested if you have set warnings to errors, and if so you should be able to get VS to generate a |
Description
.NET 8 RC1 can not compile with Windows app sdk and CsWinRT
In.net8 RC1, the Marshal.QueryInterface() method is defined from
public static int QueryInterface (IntPtr pUnk, ref Guid iid, out IntPtr ppv);
Become a
public static int QueryInterface (IntPtr pUnk, in Guid iid, out IntPtr ppv);
Please update the content in WinRT.cs immediately, otherwise the application will not compile
Reproduction Steps
In describe bug
Expected behavior
In describe bug
Actual behavior
The Marshal.QueryInterface() method should be compatible with both ref and in arguments
Regression?
No response
Known Workarounds
No response
Configuration
.NET 8 RC1
Windows App SDK 1.4.0
CSWINRT 2.0.3
Other information
None
The text was updated successfully, but these errors were encountered: