Visual Studio 2010 script debugger doesn't work for me

后端 未结 8 501
礼貌的吻别
礼貌的吻别 2020-12-14 06:23

I just installed VS 2010 Beta 2 and wanted to play with an ASP.NET MVC 2 project. I simply added some script (alert(\'hello\');) into the Home controller\'s in

8条回答
  •  有刺的猬
    2020-12-14 06:41

    Using a separate js file has its drawbacks. For instance, you can't use MVC helpers. Microsoft really needs to figure this one out.

    Intellisense also does not work properly in script blocks on a view, even if you include the reference comments like this:

    /// 
    /// 
    

    Intellisense works fine in the js file with this approach though.

提交回复
热议问题