The type initializer for 'GraphQL.Net.DynamicTypeBuilder' threw an exception.”
seven1986 opened this issue · 8 comments
I'm having the exact same issue 😢
Anyone find out the cause of the error?
For everyone experience this issue, what version of .NET are you running? I expect this is due to API changes in dynamic type creation on .NET core.
I have the same issue and run on .net core. Is this library even done for .net core? Visual Studio tells me, that it is incompatible with my current .net core project. I thought it is not compatible, that is why i had to abandon the idea to use graphql.net. But it kind of sounds, that you want to support it? Because the idea is absolutely nice and exactly what i would need.
If you're using .NET Core it will always throw this error, we should consider targeting .NET Standard as mentioned in #34
.NET Core 2.0
.NET Core 2.1 (Preview)
I allready tried to compile it against .net core, but i have too few experience in this and I failed. I would love to see a .net core version of this and would like to help, if there is something i could do.
Hi guys, i just could workaround this issue by doing this change jvitor83@26a5f6d#diff-8fa9aa5aed6d6219daacaa099553fe78R16
Don't know if it is enough to a PR fix, but i could make it work with asp.net core.