我只是 NuGetted ServiceStack.Redis 3.1.3 但作为它的依赖项,它也获得了 ServiceStack.Common 和 ServiceStack.Text 3.1.6
现在,当我构建应用程序时,一切正常。
但是,当我运行应用程序时,一些 Redis 客户端方法可以正确执行,但其中一些方法(例如(RedisClient.GetAllKeys)会抛出异常)
Could not load file or assembly 'ServiceStack.Common, Version=1.0.4336.27526, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
然后我删除了所有的 dll 和 nuget 包配置,并明确地做了一个 NuGet ServiceStack.Common -Version 3.1.3 并得到了它。但是当我尝试 NuGet ServiceStack.Redis -Version 3.1.3 时,它自动删除了 Common 的 3.1.3 版本并下载了 3.1.6 版本!
Arrrghhh,我讨厌聪明的安装人员。
我该如何解决 ?
ServiceStack 的发布者甚至知道这个问题吗?