By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,741 Members | 1,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,741 IT Pros & Developers. It's quick & easy.

Want to convert VS2003 project format to VS2005 format

P: n/a
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.Des ignerGenerated()_

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




Jan 14 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Jan 14, 8:38*pm, "Academia" <academiaNOS...@a-znet.comwrote:
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.Des ignerGenerated()_

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.aspx

Hope this helps.
Jan 14 '08 #2

P: n/a
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


"kimiraikkonen" <ki*************@gmail.comwrote in message
news:90**********************************@i12g2000 prf.googlegroups.com...
On Jan 14, 8:38 pm, "Academia" <academiaNOS...@a-znet.comwrote:
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.Des ignerGenerated()_

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.aspx

Hope this helps.
Jan 14 '08 #3

P: n/a
On Mon, 14 Jan 2008 13:38:50 -0500, "Academia"
<ac************@a-znet.comwrote:
>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.De signerGenerated()_

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.
Jan 15 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.