Want to convert VS2003 project format to VS2005 format

A

Academia

I have a vs2003 project (actually 44 of them) that I want to convert to
VS2005 format.

To fix a usercontrol file I created the Designer.vb file and moved the
Inherited and Class ( change to partial class) lines to it so it started
with:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _

Partial Class UserControl1

Inherits System.Windows.Forms.UserControl



Also moved all the entire"

'Required by the Windows Form Designer" code to it except for the New
method.



But when I open VS2005 the designer.vb file shows but not under the .vb file
node.

I think it was found in the folder but not recognized as related to the .vb
file.



Is there something else I have to do to convince VS2005 that these files go
together?



thanks
 
K

kimiraikkonen

I have a vs2003 project (actually 44 of them) that I want to convert to
VS2005 format.

To fix a usercontrol file I created the Designer.vb file and moved the
Inherited and Class ( change to partial class) lines to it so it started
with:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _

Partial Class UserControl1

Inherits System.Windows.Forms.UserControl

Also moved all the entire"

'Required by the Windows Form Designer" code to it except for the New
method.

But when I open VS2005 the designer.vb file shows but not under the .vb file
node.

I think it was found in the folder but not recognized as related to the .vb
file.

Is there something else I have to do to convince VS2005 that these files go
together?

thanks

If your source code is available in one folder which is name of your
project, double-click yourprojectname.vbproj file to launch project,
then if a conversion is required VS2005 will offer it to do for you,
then click next and finish to finalize the conversion.

Just like step5 on this site:
http://webproject.scottgu.com/CSharp/Migration/Migration.aspx

Hope this helps.
 
A

Academia

I wasn't clear. These projects have been converted and now compile in
VS2005.
But they still have the older format - they is the UI code is in .vb rather
than in .Designer.vb.
That is what I am trying to remedy.

And maybe a project created in VS2005 has other things different than one
created in Vs2003. I like to learn about those thing and update to them
also.

Thanks




I have a vs2003 project (actually 44 of them) that I want to convert to
VS2005 format.

To fix a usercontrol file I created the Designer.vb file and moved the
Inherited and Class ( change to partial class) lines to it so it started
with:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _

Partial Class UserControl1

Inherits System.Windows.Forms.UserControl

Also moved all the entire"

'Required by the Windows Form Designer" code to it except for the New
method.

But when I open VS2005 the designer.vb file shows but not under the .vb
file
node.

I think it was found in the folder but not recognized as related to the
.vb
file.

Is there something else I have to do to convince VS2005 that these files
go
together?

thanks

If your source code is available in one folder which is name of your
project, double-click yourprojectname.vbproj file to launch project,
then if a conversion is required VS2005 will offer it to do for you,
then click next and finish to finalize the conversion.

Just like step5 on this site:
http://webproject.scottgu.com/CSharp/Migration/Migration.aspx

Hope this helps.
 
J

Jack Jackson

I have a vs2003 project (actually 44 of them) that I want to convert to
VS2005 format.

To fix a usercontrol file I created the Designer.vb file and moved the
Inherited and Class ( change to partial class) lines to it so it started
with:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _

Partial Class UserControl1

Inherits System.Windows.Forms.UserControl



Also moved all the entire"

'Required by the Windows Form Designer" code to it except for the New
method.



But when I open VS2005 the designer.vb file shows but not under the .vb file
node.

I think it was found in the folder but not recognized as related to the .vb
file.



Is there something else I have to do to convince VS2005 that these files go
together?

Yes. Open the .vbproj file in some editor like Notepad. Search for
the name of the designer file. You should find a line like:

<Compile Include="ctlRadiobuttonGroup.designer.vb" />

Remove the / at the end and add a DependentUpon clause and an explicit
close of the Compile like this:

<Compile Include="ctlRadiobuttonGroup.designer.vb">
<DependentUpon>ctlRadiobuttonGroup.vb</DependentUpon>
</Compile>

The DependentUpon links the two files.
 
A

Academia

Jack Jackson said:
Yes. Open the .vbproj file in some editor like Notepad. Search for
the name of the designer file. You should find a line like:

<Compile Include="ctlRadiobuttonGroup.designer.vb" />

Remove the / at the end and add a DependentUpon clause and an explicit
close of the Compile like this:

<Compile Include="ctlRadiobuttonGroup.designer.vb">
<DependentUpon>ctlRadiobuttonGroup.vb</DependentUpon>
</Compile>

The DependentUpon links the two files.


I haven't got to where I can compile yet but that did relate the files
together as you said.

Thanks a lot

If you think of something else that is different between the vs2003 and the
vs2005 formats I appreciate learning of it.

Also, is what you showed me documented someplace I could read?
 

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