安装Unity.Interception nuget包的问题
问题描述:
我正尝试在Visual Studio 15中为Web API项目安装Unity.Interception nuget包。我已经安装并且一直在使用Unity 4.0.1,但是我收到了一个奇怪的错误当尝试安装Unity.Interception时(我用{}和一个缩写的路由名称覆盖了本地文件系统路径)。从软件包管理器安装Unity.Interception nuget包的问题
输出:
Installing Unity.Interception 4.0.1.
Adding package 'Unity.Interception.4.0.1' to folder '{projectpath}\packages'
Added package 'Unity.Interception.4.0.1' to folder '{projectpath}\packages'
Install failed. Rolling back...
Package 'Unity.Interception.4.0.1 : Unity [4.0.1,)' does not exist in project '{projectname}'
Removing package 'Unity.Interception.4.0.1 : Unity [4.0.1,)' from folder '{projectpath}\packages'
Removed package 'Unity.Interception.4.0.1 : Unity [4.0.1,)' from folder '{projectpath}\packages'
Failed to add reference to 'Microsoft.Practices.Unity.Interception.Configuration'.
如何解决这个问题的任何想法,将不胜感激!
答
这似乎是Visual Studio的简单重新启动为我解决了这个问题。