This version of Microsoft.AspNetCore.All is only compatible with the netcoreapp2.1 target framework

后端 未结 10 1379
无人共我
无人共我 2021-02-04 23:24

When I try to publish my application to the web server after upgrading to .NET Core 2.1 from 2.0, I get this message: \"This version of Microsoft.AspNetCore.All is only compatib

10条回答
  •  半阙折子戏
    2021-02-05 00:02

    Im guessing you pulled all the 2.1.x upgrades but initially started your project in 2.0.x. I just hand edit the cspoj file by downgrading back down and adding:

    
    
        netcoreapp2
    
    
    
    
                 
    
                      
                                
           
    
      
    
    
                          
       
     
           
    
    

    So I think you are missing the item group.

提交回复
热议问题