I was using services very successfully in Wpf app, now when i need to use the same client in my console app i got exception :
The type initializer for 'MagicOnion.Client.DynamicClient.DynamicClientBuilder`1' threw an exception.'
PlatformNotSupportedException: Dynamic code generation is not supported on this platform.
Here is the same code i used in WPF APP:
var channel = GrpcChannel.ForAddress("myAddress");
var proxy = MagicOnionClient.Create(channel)!;
I was using services very successfully in Wpf app, now when i need to use the same client in my console app i got exception : The type initializer for 'MagicOnion.Client.DynamicClient.DynamicClientBuilder`1' threw an exception.' PlatformNotSupportedException: Dynamic code generation is not supported on this platform.
Here is the same code i used in WPF APP: var channel = GrpcChannel.ForAddress("myAddress"); var proxy = MagicOnionClient.Create(channel)!;