-
Notifications
You must be signed in to change notification settings - Fork 206
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
Question about typeof().Guid #802
Comments
Yes, the tests have more restrictive reflection settings than the default. |
I understand that in general sense it is not possible to have |
runtimelab/src/tests/nativeaot/SmokeTests/PInvoke/PInvoke.cs Lines 15 to 20 in b1b2410
If you need to do reflection-y things, you either need to add another assembly to the pinvoke test (the attribute is applicable per assembly), or just add a new test.
I think in the general sense this should just work. The problem is opting into reflection blocking. We do that as a size optimization for some of the System.Private assemblies only. ...and in this test. |
I think it would be nice to just avoid reflection-y things for the ComWrappers test. |
When implementing tests I have approximate code
This throws
I was not expecting that this cause any issues. Especially that I have that pattern in other project. Do tests have more aggressive NativeAOT settings then defaults?
The text was updated successfully, but these errors were encountered: