Skip to content
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

Collection expression is marked as forbidden calls in .net 8 client-side #34

Open
duydang2311 opened this issue Nov 5, 2024 · 0 comments

Comments

@duydang2311
Copy link
Contributor

duydang2311 commented Nov 5, 2024

Any collection expression List<int> numbers = [1, 2, 3] will be found as forbidden calls, prevent the resource from loading.

Here are the logs:

[Warning][C#] Found forbidden call to System.Span`1<>::get_Item(System.Int32) in System.Void MyNamespace.ClientResource::.ctor() 
[Error][C#] Failed to load resource my-client-resource
[Error][C#] System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
The signature is incorrect.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at 틇.튵.튵()
   at 틇.틠.틇(IntPtr, Int32)
System.TypeLoadException: The signature is incorrect. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant