开发者

Intellisense not working for ViewModel for MVC2 project in ASP.NET MVC2 RTW

开发者 https://www.devze.com 2022-12-25 01:42 出处:网络
I upgraded to MVC2 RTM with VS2010 RC and some of my ViewUserControl and Page controls don\'t sho开发者_运维百科w intellisense for simple things like <%= Html..... %> or <%= Model... %>If this i

I upgraded to MVC2 RTM with VS2010 RC and some of my ViewUserControl and Page controls don't sho开发者_运维百科w intellisense for simple things like <%= Html..... %> or <%= Model... %>


If this is an Area that is having problems then there is probably a missing Web.Config file in the Areas project. Without it Visual Studio thinks you're using a 'traditional' aspx or asmx file.

  • Right click on the MVC project and select 'Add'
  • Choose 'Area' from the dropdown
  • Copy the Web.Config file that was generated into your original Area

It should work now.

0

精彩评论

暂无评论...
验证码 换一张
取 消