2016-09-23 72 views
0

它給了我這個 錯誤:無法加載文件或程序錯誤在Visual Studio

@Scripts.Render("~/bundles/modernizr") Can not load file or assembly or one of its dependencies WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35 The file can not be found.

我該如何解決這個問題?

回答

2

安裝Modernizr NuGet包使用命令進入NuGet包管理器控制檯。

Install-Package Modernizr 

WebGrease使用

Install-Package WebGrease 

這裏有包Modernizr WebGrease

+0

這並沒有工作,這是我所得到的:拋出異常: 'System.IO.FileNotFoundException' 在系統.Web.Optimization.dll – Godnatt

+0

嘗試更新回答你需要安裝另一個包 – Mostafiz

+0

非常感謝你,解決了這個問題=) – Godnatt

相關問題