当我开始我的项目(基于Project Orleans),却因为缺少引用而引发了一个奇怪的警告:
[2015-07-26 20:03:06.970 GMT 6 INFO 100000 AssemblyLoader.Client ] User assembly ignored: C:\Users\Gutemberg\Documents\Visual Studio 2015\Projects\PI - Switch (MS)\PI.Switch.Gateway.Host\bin\Debug\Microsoft.Practices.Unity.dll
* An assembly dependency [Microsoft.Practices.ServiceLocation, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.] could not be loaded: 0
Microsoft.Practices.ServiceLocation在Unity Nuget包中不存在,我无法找到它的任何信息!这导致我的应用程序出现了一些奇怪的运行时行为。
我使用的是最新的Unity Nuget。以下是一些截图,证明依赖项(ILSpy)以及VS中的项目引用+ Nuget软件包管理器屏幕。
这个引用真的必要吗?如何摆脱它?
谢谢!非常感谢您的帮助。