Upgrading WebGrease to version 1.3.0 gets me error

后端 未结 14 2304
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-23 14:05

While upgrading WebGrease to version 1.3.0 gets me error:

Could not load file or assembly \'WebGrease, Version=1.0.0.0, Cult

14条回答
  •  死守一世寂寞
    2020-12-23 14:37

    For a Web API project I'm working on what really worked was the following:

    1. Open NuGet package manager, click in Installed packages and then uninstall Microsoft.AspNet.Web.Optimization. It prompts it'll remove WebGrease 1.1.0. Hit Yes.

    2. Now reinstall it clicking NuGet's Online tab and search for Microsoft.AspNet.Web.Optimization.

    Now everything is working as expected.

提交回复
热议问题