Importing forms from vs2005 > vs2008 manually. How do i make vs2008 recognise them as forms?

C

Claire

Im moving an application from VS2005 to VS2008.
Im recreating my projects manually as I've had problems in the past allowing
VS to update my application automatically
I copy the xxx.cs, xxx.designer.cs and xxx.resx files for a form to the new
project directory.
I only add the .cs file to the project and VS2008 automatically picks up the
other 2 files and places them in subnodes in the solution explorer. But, the
icon shown in solution explorer is that for a class/code file and when I
double click on it I dont get my form shown. I only see the code in the cs
file.
If I add all 3 files to the project then a base node is created for each of
the 3 files.
How do I add a form properly please?
 
C

Claire

I solved it. I added a new form to the class library and it added all the
missing references the project needed to recognise them as forms.
Thanks anyway.
 
J

Jon Skeet [C# MVP]

Claire said:
Im moving an application from VS2005 to VS2008.
Im recreating my projects manually as I've had problems in the past allowing
VS to update my application automatically

I really think it's a good idea to let VS2008 convert it. The changes
between 2005 and 2008 are *much* smaller than between 2003 and 2005.

Why not just try it, and then see the results by a diff with the
version in source control?
 

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