The name 'Scripts' does not exists in the current context in MVC

前端 未结 5 2153
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 22:33

In my mvc application, In the _Layout.cshtml has code below...


    
    

        
5条回答
  •  感情败类
    2020-12-07 23:02

    In VisualStudio 2019,I was able to solve this error. Microsoft.Web.Optimization is now included in the 'Microsoft.AspNet.Web.Optimization' package. Using NuGet Packing Manager download the package. In .cshtml file add "@using System.Web.Optimization;

提交回复
热议问题