-
Notifications
You must be signed in to change notification settings - Fork 1.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
Type binding Error with .NET 9 Preview 6 #23551
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
/cc @jkurdek |
This issue has been verified Visual Studio 17.11.0 Preview 3.0(9.0.0-preview.6.24327.7)& VSM 17.6.12(net9),Can repro on all platforms. |
I wonder if we can do something about this on our end or if this is some limitation of source generators and hot reload. It seems to me that the type name of the source generated class changes with every roslyn compilation: In one instance, the type name before the update (obtained by listing types in the assembly via reflection) was:
And the exception message compained about not being able to find this type:
The I'm not sure who on the Roslyn team or on the tooling team could help us diagnose this. |
The mangled names were caused by the class being |
Description
Testing .NET Hot Reload and .NET 9 Preview 6 I'm getting these errors:
From changing anything in this method:
The binding functions as I expect. @simonrozsival I suspect this is related to the compiled bindings work.
Commenting out the binding allows .NET Hot Reload to succeed without error. Returning to a non-compiled binding works as well:
SharpNine.zip
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.0-preview.6.24327.7
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: