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

后端 未结 5 740
难免孤独
难免孤独 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:31

    Please make sure that you are marking them as "Public", and compile it once before opening the AddView Dialog box.

提交回复
热议问题