为什么ASP.NET MVC中有设计器文件(* .designer.cs)?

时间:2009-02-05 18:09:08

标签: asp.net-mvc web-applications

ASP.NET MVC Web Apps中自动生成的“设计器”文件有什么意义?

我正在尝试使用ASP.NET MVC(来自ASP.NET Webforms项目),所以我习惯于只为每个ASP.NET标记文件(.aspx,.ascx等)提供一个代码文件。 。我可以使用模型旁边的代码与MVC应用程序,因为较少的文件看起来更简单吗?

感谢。

1 个答案:

答案 0 :(得分:6)

designer.cs文件是hold over from Web Application projects(MVC是其衍生物)。除了文件背后的常规代码they are no longer needed with the latest MVC RC

相关问题