再生designer.cs [英] Regenerate designer.cs

查看:94
本文介绍了再生designer.cs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是删除从aspx页designer.cs文件。(不要问我该怎么做..你不是真的想知道..)
它是再生的aspx页面文件的方法吗?我希望像右键单击/生成设计师的存在,但它并非如此..: - (

I just deleted a designer.cs file from a aspx page.. (Don't ask how I can do that.. You don't really want to know..) Is it a way to regenerate the file for the aspx page? I was hoping that something like "right-click/ generate designer" exists but it is not the case.. :-(

所以感谢你,如果有人有一个想法。

So thanks if somebody have an idea..

推荐答案

查找另一个解决我的问题,的在aspx文件单击右键,然后选择转换为Web应用程序的,然后,该designer.cs文件再生..

Find another solution to my Question, right-click on the aspx file, then choose "convert to web application" and then, the designer.cs file is regenerated..

这是更容易和快速。

这个选项不再VS2013提供,但你可以通过选择在Solution Explorer中的项目,然后会在菜单栏的<大骨节病>项目选项完成同样的事情。在底部附近,你会看到<大骨节病>转换为Web应用程序选项。这将产生对你的项目的所有* .aspx页没有他们设计的文件,但要知道,这可能不是你想要的,如果你有codeFILE * .aspx页和$ C混合$ cBehind文件。这也将转换codeFILE页面codeBehind文件。 (礼貌 Joisey迈克

This option is no longer available in VS2013, but you can accomplish the same thing by selecting your project in the Solution Explorer, then going to the Project option on the Menu Bar. Near the bottom you will see the Convert to Web Application option. This will generate designer files for all the *.aspx pages in your project that don't have them, but be aware that this may not be what you want if you have a mix of CodeFile *.aspx pages and CodeBehind files. This will also convert CodeFile pages to CodeBehind files. (Courtesy Joisey Mike)

这篇关于再生designer.cs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆