Godnatt Factory Godnatt Factory - 2 months ago 14
C# Question

Can not load file or assembly error in Visual Studio

When I run a project in Visual Studio Community 2015 it gives me this
error:


@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.


How can I solve this?

Answer

Install Modernizr NuGet package using the command into NuGet package manager console.

Install-Package Modernizr

and WebGrease using

Install-Package WebGrease

Here are the packages Modernizr WebGrease

Comments