VS2005: Port project or recreate from ground up?

D

-DG-

In C++, there is a compelling reason to recreate projects for the
VS2005 compiler rather than simply copy and recompile older code
(reason being C++/CLI syntax).

I'm wondering if there is any reason to do the same with C# code.
Does a newly created project have any differences in compiler switches
when compared to a ported VS2003 project?
 
O

Olaf Baeyens

In C++, there is a compelling reason to recreate projects for the
VS2005 compiler rather than simply copy and recompile older code
(reason being C++/CLI syntax).

I'm wondering if there is any reason to do the same with C# code.
Does a newly created project have any differences in compiler switches
when compared to a ported VS2003 project?
It depends, if you C++ was unmanaged only and have no support and uses MFC
extensively then recreating the project could be a wise choice, since the
..NET framework will reduce your code dramatically if you dump MFC.

For C#, VS 2002 and 2003 created it as .NET framework from the beginning,
there is no need to recreate the project since it is near identical. You
might want to remove self made code that is now part of the .NET framework,
like the serial port.
 
D

-DG-

For C#, VS 2002 and 2003 created it as .NET framework from the beginning,
there is no need to recreate the project since it is near identical. You
might want to remove self made code that is now part of the .NET framework,
like the serial port.

Yes, I was talking about porting VS2003 projects to VS2005. I was
considering that dialogs are now split into two modules using partial
classes. That eliminates a lot of the "Compiler-generated, Don't
touch this" blocks within the code you're editing.

Of course if there is a tool that will convert the older format files,
that would be great. Some of my VS2003 dialogs are complex, and I'm
not looking forward to recreating them. I guess I could study the
newer output format and try to duplicate it, but that may be
time-consuming as well.

That kinda stuff...
 
D

-DG-

I was talking about porting VS2003 projects to VS2005. I was
considering that dialogs are now split into two modules using partial
classes. That eliminates a lot of the "Compiler-generated, Don't
touch this" blocks within the code you're editing.

Of course if there is a tool that will convert the older format files,
that would be great. Some of my VS2003 dialogs are complex, and I'm
not looking forward to recreating them. I guess I could study the
newer output format and try to duplicate it, but that may be
time-consuming as well.

Just occurred to me...Does the porting tool for splitting dialogs
exist already?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top