Visual Studio .net core tag helpers not working

后端 未结 9 2482
暗喜
暗喜 2021-02-19 00:49

Well, lets get down to it. I\'m using Visual Studio 2015 and ASP.NET core tag helpers have completely stopped working, no idea why as I\'ve not changed anything. I was in work o

9条回答
  •  余生分开走
    2021-02-19 01:32

    In your project.json dependencies, you are missing TagHelpers. Please add below line in dependencies section of project.json-

    "Microsoft.AspNetCore.Mvc.TagHelpers": "1.0.1",
    

    On saving Project.json, VS2015 automatically restore packages.

    If it doesn't worked then right click on project and click on Restore Packages option.

    If this doesn't worked then try restoring using dotnet restore CLI command.

提交回复
热议问题