I made updates to an ascx file that include new server controls in the user control and
Visual Studio 2010’s original attempt to update the designer file failed because the file was set to readonly due to an unfortunate choice of source control.
I’ve made the file editable, but can’t seem to figure out how to retrigger the update. I’ve even removed my original ascx changes, hit save, then put them back in, saving yet again. How can I trigger VS2010’s update of the designer.cs file?
Surely there’s a better way, but as a workaround, I added and removed a literal control:
That worked, but somehow removing and re-adding the controls that failed the first time doesn’t work.