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
[Blazor] TypeDescriptor is not working #7784
Comments
I think it's definitely the case that the linker is trimming this out. The specific type One workaround you could use it to set @javiercn any ideas? |
I declared static variables like this to prevent IL stripping:
@rynowak @javiercn
Where can I find those settings? |
@SteveSandersonMS Can users still add a custom descriptor file to tweak the linking process? |
Yes, but weirdly the docs for that feature seem to have been deleted. I found an old copy in Git history here: https://github.com/aspnet/Blazor.Docs/blob/7ced0029b97b3b8afdda4e2a235bd6cecebfc2fd/docs/host-and-deploy/configure-linker.md @danroth27 Do you know why that was removed? Also on https://blazor.net/, the "docs" link in the header goes to a 404, and there's still the "experimental" tag in the top right. |
The IL linker doc is here: https://docs.microsoft.com/aspnet/core/host-and-deploy/blazor/configure-linker
I'm not seeing this. When I click on Docs I get redirected to https://docs.microsoft.com/aspnet/core/blazor/
That's expected for now |
Describe the bug
I'm trying to use TypeDescriptor for conversion between value types but it is not working in Blazor project. As soon as I try to use it it will break and raise an exception. In the example bellow the second
Console.WriteLine
is never called.To Reproduce
Exception Stack Trace
The text was updated successfully, but these errors were encountered: