简体   繁体   中英

How do you regenerate aspx.designer.cs in VS 2013

I am having an issue with my aspx.designer.cs file not auto updating. I am using VS 2013. - I've tried to delete the designer file and rebuild. NO JOY. - There is no option to convert to web project. (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.

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.

The worst case you can delete the individual xxx.designer.cs, and recreate it by using Convert to Web Application

NOTE: do not delete all designer.cs files; instead you just need to delete the one which is out of sync.

Visual Studio 2012

在此输入图像描述

Visual Studio 2013

Convert to Web Application is moved under Project.

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM