问题
I am trying to follow the pattern shown in this question.
where I'm using:
HubConnectionBuilder()
in my WPF client app (.NetFramework 4.7). To do this, it seems to me I need to add a reference to:
Microsoft.AspNetCore.SignalR.Client
in my WPF app.
However, I'm getting this error when I try to build:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Am I including the right package for WPF? Or should I be trying to solve the missing file issue? If the latter, how to I get the right file into my build?
回答1:
I think I've seen this particular problem.
As I recall this is "just" a problem in the nuget package dependencies.
Try adding a manual reference to System.Numerics.Vectors
来源:https://stackoverflow.com/questions/49943169/signalr-system-numerics-vectors-v4-1-4-not-found-when-using-aspnetcore-signalr