Isaac Bolinger
Isaac Bolinger

Reputation: 7388

Is there a quick way in VS2010 to force all winforms designer.cs autogenerated code to regenerate themselves in a c# project?

I have a lot of designer.cs files to regenerate. Usually I just make some trivial edit to each of them to force the designer code to regenerate. But is there a quicker way to make this happen to a bunch of designers en masse?

Upvotes: 1

Views: 1514

Answers (1)

Reddog
Reddog

Reputation: 15579

I think that you'll have compile first - a rebuild would probably work best - then open each of the Forms/Controls up in design view mode.

If you really want to make sure you get the cleanest regen, then you could delete all the .designer.cs files before opening up the design view. This might dramatically change the order of things in the designer file though.

Upvotes: 3

Related Questions