Upgrading WebGrease to version 1.3.0 gets me error

后端 未结 14 2303
佛祖请我去吃肉
佛祖请我去吃肉 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:20

    Here is the answer that has worked for me, and it is a combination of some of the above answers. First install / uninstall / reinstall the following packages:

    Install-Package Microsoft.AspNet.Web.Optimization 
    Update-Package WebGrease
    Uninstall-Package Microsoft.AspNet.Web.Optimization
    Uninstall-Package WebGrease
    Install-Package Microsoft.AspNet.Web.Optimization 
    Update-Package WebGrease
    

    Then make a copy of the contents of ~/Views/Shared/_Layout.cshtml delete the _Layout.cshtml file, recreate it and paste the contents back in.

    this is the final fix that has worked for me.

提交回复
热议问题