[英]How do you regenerate aspx.designer.cs in VS 2013
I am having an issue with my aspx.designer.cs file not auto updating. 我的aspx.designer.cs文件没有自动更新问题。 I am using VS 2013. - I've tried to delete the designer file and rebuild. 我正在使用VS 2013. - 我试图删除设计器文件并重建。 NO JOY. 没有喜欢。 - There is no option to convert to web project. - 没有选项可以转换为Web项目。 (it's vs 2013 and the project is already a web project. - searched Microsoft blogs for a solution and Microsoft doesn't even have a solution i can find. (这是vs 2013,该项目已经是一个网络项目。 - 搜索微软博客的解决方案,微软甚至没有我能找到的解决方案。
If anyone has a verified way to force this file to update or regenerate, please let me know. 如果有人有经过验证的方法强制此文件更新或重新生成,请告诉我。 Having to manually add my controls to this file is just PAINFUL!!! 必须手动将我的控件添加到此文件只是痛苦!
Normally, just open the ASPX file and save Ctrl + S solves the problem. 通常,只需打开ASPX文件并保存Ctrl + S即可解决问题。
The worst case you can delete the individual xxx.designer.cs, and recreate it by using Convert to Web Application 最糟糕的情况是,您可以删除单个 xxx.designer.cs,并使用转换为Web应用程序重新创建它
NOTE: do not delete all designer.cs files; 注意:不要删除所有designer.cs文件; instead you just need to delete the one which is out of sync. 相反,你只需要删除不同步的那个。
Convert to Web Application is moved under Project. 转换为Web应用程序在Project下移动。
上次我有这个问题是VS2008和解决方案是重新启动VS并再次添加或删除控件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.