Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!!!

like image 416
tralmix Avatar asked Jul 31 '14 20:07

tralmix


1 Answers

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

enter image description here

Visual Studio 2013

Convert to Web Application is moved under Project.

enter image description here

like image 147
Win Avatar answered Sep 21 '22 16:09

Win