我有一个Windows服务应用程序,用于承载Signalr集线器,但是在构建时,尽管启用了nuget软件包还原,但总是显示一些DLL丢失。
我的 package.config
<packages>
<package id="jQuery" version="1.6.4" targetFramework="net452" />
<package id="Microsoft.AspNet.Cors" version="5.0.0" targetFramework="net452" />
<package id="Microsoft.AspNet.SignalR" version="2.3.0" targetFramework="net452" />
<package id="Microsoft.AspNet.SignalR.Core" version="2.3.0" targetFramework="net452" />
<package id="Microsoft.AspNet.SignalR.JS" version="2.3.0" targetFramework="net452" />
<package id="Microsoft.AspNet.SignalR.SelfHost" version="2.3.0" targetFramework="net452" />
<package id="Microsoft.AspNet.SignalR.SystemWeb" version="2.3.0" targetFramework="net452" />
<package id="Microsoft.Owin" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.Cors" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.Diagnostics" version="2.1.0" targetFramework="net452" />
<package id="Microsoft.Owin.Host.HttpListener" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.Host.SystemWeb" version="2.1.0" targetFramework="net452" />
<package id="Microsoft.Owin.Hosting" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.Security" version="4.0.0" targetFramework="net452" />
<package id="Microsoft.Owin.SelfHost" version="2.1.0" targetFramework="net452" />
<package id="Owin" version="1.0" targetFramework="net452" />
</packages>
缺少DLL
答案 0 :(得分:0)
发生这种情况时,这是Visual Studio缓存问题。只需单击缺少的Dll并稍等一下,问题通常就会消失。