Why don't my Html Helpers have intellisense?

后端 未结 9 1562
無奈伤痛
無奈伤痛 2020-12-06 15:54

I can\'t get intellisense for my own html helpers. My CustomHtmlHelpers.cs looks like this:

using System.Web.Mvc;
using System.Text;
using Syste         


        
9条回答
  •  半阙折子戏
    2020-12-06 16:30

    Sometimes it doesn't seem to work right away. Try closing the .cshtml file, and re-opening it. Then if that doesn't work, try restarting Visual Studio. Also make sure you actually compiled your project, intellisense won't work with non-compiled helpers.

提交回复
热议问题