'Getting DllNotFoundException: grpc_csharp_ext in Unity Project

I am trying to setup a Unity project that uses some NuGet packages. I was able to use a separate Visual Studio project (following this tutorial) to get all of the necessary DLLs and dependencies. However, Grpc is among the dependencies and doesn't seem to load grpc_csharp_ext properly.

I found this GitHub issue and tried copying libgrpc_csharp_ext.x64.so into my Assets/Plugins folder bit it didn't help. I still get the following error:

DllNotFoundException: grpc_csharp_ext
Grpc.Core.Internal.NativeLogRedirector.Redirect (Grpc.Core.Internal.NativeMethods native) (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
Grpc.Core.Internal.NativeExtension..ctor () (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
Grpc.Core.Internal.NativeExtension.Get () (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
Grpc.Core.Internal.NativeMethods.Get () (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
Grpc.Core.GrpcEnvironment.GrpcNativeInit () (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
Grpc.Core.GrpcEnvironment..ctor () (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
Grpc.Core.GrpcEnvironment.AddRef () (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
Grpc.Core.Channel..ctor (System.String target, Grpc.Core.ChannelCredentials credentials, System.Collections.Generic.IEnumerable`1[T] options) (at <1046e947fc1a4c10a91a602a6393a1d2>:0)
... etc ...

I am using Unity 2020.3.10f1 on Windows 10

Any help will be greatly appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source