作者:asdfu_814 | 来源:互联网 | 2023-07-23 15:49
IneedtogetexistingwebpagesintoanexistingASP.NETwebsiteprojectinVisualStudio2008.I
I need to get existing web pages into an existing ASP.NET web site project in Visual Studio 2008. I simply tried to drag and drop the whole file folder content into the Visual Studio Solution Explorer or even to copy them into the web site folder.
我需要将现有的Web页面放入Visual Studio 2008中的现有ASP.NET网站项目中。我只是尝试将整个文件夹内容拖放到Visual Studio Solution Explorer中,甚至将它们复制到Web站点文件夹中。
Both ways, Visual Studio seems unable to map the .designer.cs files to the corresponding .aspx (or .master) file, even after restarting the whole IDE. The Solution Explorer entry looks in a way like this:
两种方式,Visual Studio似乎无法将.designer.cs文件映射到相应的.aspx(或.master)文件,即使在重新启动整个IDE之后也是如此。解决方案资源管理器条目的外观如下:
- Main.aspx
Main.aspx.cs
Main.aspx.designer.cs
Can I make Visual Studio file the designer-file below the aspx-file in any way? I strongly hope there is a simpler way than manually creating each file and copying and pasting the contents into each file by hand.
我可以以任何方式将Visual Studio文件设置为aspx文件下的设计器文件吗?我强烈希望有一种比手动创建每个文件更简单的方法,并手动将内容复制并粘贴到每个文件中。
3 个解决方案