Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Visual Studio 2012 中没有网站部署,好的,我切换到 Web 项目,现在它已经生成了大量 page.designer.cs 文件,我如何在没有 Designer.cs 文件的情况下制作 Web 应用程序项目?
Visual Studio 创建这些文件是为了方便编码,当你创建一个新的 Web 应用项目时,你总是会得到这些文件。这些文件创建了设计网页所需的必要代码。 但是一旦您使用 VS2010 发布器将 Web 应用程序发布到服务器,这些文件就消失了,只剩下 .aspx 文件。为什么会这样?因为您的代码(即 .cs 文件)需要先编译才能发布到服务器上。