简体   繁体   English

如何在VS 2013中重新生成aspx.designer.cs

[英]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. 相反,你只需要删除不同步的那个。

Visual Studio 2012 Visual Studio 2012

在此输入图像描述

Visual Studio 2013 Visual Studio 2013

Convert to Web Application is moved under Project. 转换为Web应用程序Project下移动

在此输入图像描述

上次我有这个问题是VS2008和解决方案是重新启动VS并再次添加或删除控件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 你如何真正地向.aspx.designer.cs文件添加内容? - How do you really add content to a .aspx.designer.cs file? aspx.cs 和 aspx.designer.cs 在哪里 - Where are aspx.cs and aspx.designer.cs aspx.designer.cs文件中仅显示顶级控件吗? - Do only top-level controls show up in the aspx.designer.cs file? ASP.NET自动生成aspx.designer.cs关闭? - ASP.NET auto-generate aspx.designer.cs turn off? 在 VS 2019 中 - 如何从现有的 aspx 页面重新生成代码隐藏和设计器文件 - In VS 2019 - How to regenerate code-behind and designer files from an existing aspx page 如何覆盖 Upload.aspx 或 AllItems.aspx 等 SharePoint 2013(不是 SP 设计器) - How can you override Upload.aspx or AllItems.aspx etc. SharePoint 2013 (NOT SP Designer) 如何重新生成Resource.designer.cs文件Xamarin Android - How to regenerate Resource.designer.cs file Xamarin Android 数据集Designer.cs在VS2013中从SVN更新后生成Designer1.cs - Dataset Designer.cs generate Designer1.cs after taking update from SVN in VS2013 强制WinForms重新生成.designer.cs文件 - Force WinForms to regenerate .designer.cs files 如何在Visual Studio 2015中重新生成Designer文件 - How do I regenerate designer File in Visual Studio 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM