No reply on my previous query, so I'll post this again. I've done a
bit more research in the interim.
I'm trying to find an easy way to port code from the older VS2003
format to the format used in VS2005. VS2005 uses partial classes to
split off the compiler-generated sections of forms. It keeps the
editable files uncluttered.
I generated very simple projects with VS2003 and with VS2005 to
compare the output. Following are standout differences:
VS2003's Form1.cs gets split into three modules:
Form1.cs (the new one) has only the constructor and event response
functions. Form1 class is declared partial.
Form1.designer.cs also has a partial Form1 class.
This file gets the Dispose() and InitializeComponent()
functions, and all the dialog objects.
For some reason, the 'components' object derives from
'IContainer' in VS2005 rather than 'Containter'
(Anyone know about this?)
The InitializeComponent() function replaces the old
'AutoScaleBaseSize =' to two new lines:
'AutoScaleDimensions = ...' and
'AutoScaleMode = ...'
Program.cs gets the Main() function, now in its own static class.
VS2005's Main() adds a call to EnableVisualStyles()
----------------------
Those appear to be the main differences. I'm not sure if the compiler
flags are changed, but the code changes seem like they could be done
with a reformatting program. Given the vast body of VS2003 code
with big clumsy dialogs, it would make sense to have a reformatter.
So...does it exist?