Migrating my MVC 3 application to MVC 4

前端 未结 9 2094
难免孤独
难免孤独 2020-12-24 03:08

I really do not know what to do, I\'m following this article that shows how to migrate my MVC 3 application manually .

I followed all the steps but

9条回答
  •  既然无缘
    2020-12-24 03:39

    Use NuGet and add the package Microsoft.AspNet.Mvc (Microsoft Asp.Net Mvc 4). This should upgrade your references. See:

    https://nuget.org/packages/Microsoft.AspNet.Mvc

    You will need to upgrade the assembly references in your web.config.

    Remove from the root web.config:

    
      
      
      
    
    

    Add to the root web.config:

    
      
        
          
          
        
        
          
          
        
        
          
          
        
      
    
    

    Views/Web.Config:

    Change Razor from 1.0.0.0 to 2.0.0.0:

    
      
        

提交回复
热议问题