-
Notifications
You must be signed in to change notification settings - Fork 11.1k
C#: grpc_csharp_ext.dll not found using dotnet cli #7230
Copy link
Copy link
Closed
Labels
Description
Using grpc 0.15.0 on Windows, and dotnet cli 1.0.0-preview2-003121.
This is about as minimal a repro as I can get:
project.json:
{
"buildOptions": { "emitEntryPoint": true },
"dependencies": { "Grpc.Core": "0.15.0" },
"frameworks": { "net45": {} }
}Program.cs:
public class Program
{
public static void Main(string[] args)
{
var channel = new Grpc.Core.Channel("127.0.0.1:50052", Grpc.Core.ChannelCredentials.Insecure);
}
}Error:
Unhandled Exception: System.IO.FileNotFoundException: Error loading native library. Not found in any of the possible locations c:\Users\jon\Test\Projects\grpctest\bin\Debug\net45\win7-x64\nativelibs\windows_x64\grpc_csharp_ext.dll
at Grpc.Core.Internal.UnmanagedLibrary.FirstValidLibraryPath(String[] libraryPathAlternatives)
at Grpc.Core.Internal.UnmanagedLibrary..ctor(String[] libraryPathAlternatives)
at Grpc.Core.Internal.NativeExtension.Load()
at Grpc.Core.Internal.NativeExtension..ctor()
at Grpc.Core.Internal.NativeExtension.Get()
at Grpc.Core.GrpcEnvironment.GrpcNativeInit()
at Grpc.Core.GrpcEnvironment..ctor()
at Grpc.Core.GrpcEnvironment.AddRef()
at Grpc.Core.Channel..ctor(String target, ChannelCredentials credentials, IEnumerable`1 options)
at Program.Main(String[] args) in c:\Users\jon\Test\Projects\grpctest\Program.cs:line 5
Reactions are currently unavailable