Upgrading WebGrease to version 1.3.0 causes error only on production server

前端 未结 2 398
礼貌的吻别
礼貌的吻别 2021-01-06 07:05

First off, answers to this question,do NOT solve my error:

Upgrading WebGrease to version 1.3.0 gets me error

I have the following bindingredirect on my prod

2条回答
  •  半阙折子戏
    2021-01-06 07:20

    I got the same problem. I have a solution with different projects within. I have disinstalled Microsoft.AspNet.Web.Optimization and WebGrease from all projects, and deleted manually all bin and obj folders.

    Then I have installed Microsoft.AspNet.Web.Optimization only in the project that need this package.

    At this point I have deleted all files from packages folder.

    When I had opened Visual Studio again it had started to reinstall all packages from scratch.

    In the end I did a git-diff and this was the result:

    $ git diff App.config
    diff --git a/App.config
    index ceec0aa..8937482 100644
    --- a/App.config
    +++ b/App.config
    @@ -18,7 +18,7 @@
           
           
             
    -        
    +        
           
         
       
    
    
    $ git diff Web.config
    diff --git a/Web.config b/Web.config
    index 7287953..f196254 100644
    --- a/Web.config
    +++ b/Web.config
    @@ -106,7 +106,7 @@
           
           
             
    -        
    +        
           
         
       
    
    
    $ git diff myproj.csproj
    diff --git a/myproj.csproj b/myproj.csproj
    index 12987d0..a214bf7 100644
    --- a/myproj.csproj
    +++ b/myproj.csproj
    @@ -24,6 +24,7 @@
         
         
         
    +    ..\packages\WebGrease.1.5.2\lib
       
       
         true
    @@ -47,8 +48,8 @@
         4
       
       
    -    
    +      ..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll
         
         
           ..\Dll\kendo\Kendo.Mvc.dll
    @@ -84,9 +85,8 @@
           True
           ..\packages\Microsoft.AspNet.Mvc.4.0.30506.0\lib\net40\System.Web.Mvc.dll
         
    -    
    +      ..\packages\Microsoft.AspNet.Web.Optimization.1.1.2\lib\net40\System.Web.Optimization.dll
         
         False
    -      ..\packages\WebGrease.1.3.0\lib\WebGrease.dll
    +    
    +      ..\packages\WebGrease.1.5.2\lib\WebGrease.dll
         
       
       
    @@ -760,7 +759,6 @@
         
         
         
    -    
         
       
       
    @@ -800,6 +798,7 @@
           RazorGenerator
           index1.generated.cs
         
    +    
       
       
         10.0
    

    In particular, both App.config and Web.config had these differences:

           
             
    -        
    +        
           
         
    

提交回复
热议问题