Attempting to add a strongly typed view does not find any classes in the MVC project

后端 未结 5 734
难免孤独
难免孤独 2021-02-08 06:44

I have a very odd problem. Whenever I try to use the \"Add View\" dialog in ASP.NET MVC2 and then try to \"Create a strongly-typed view\" by selecting a \"View data class\" from

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-08 07:26

    Some types from your project are filtered out by that dialog (for example all types ending in 'Controller', or all types in the System or Microsoft namespace). It's possible that your project does not have any types that would pass through the dialog's filters.

提交回复
热议问题