Want to convert VS2003 project format to VS2005 format

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Academia

    Want to convert VS2003 project format to VS2005 format

    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.Microso ft.VisualBasic. CompilerService s.DesignerGener ated()_

    Partial Class UserControl1

    Inherits System.Windows. Forms.UserContr ol



    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










  • kimiraikkonen

    #2
    Re: Want to convert VS2003 project format to VS2005 format

    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.Microso ft.VisualBasic. CompilerService s.DesignerGener ated()_
    >
    Partial Class UserControl1
    >
    Inherits System.Windows. Forms.UserContr ol
    >
    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:


    Hope this helps.

    Comment

    • Academia

      #3
      Re: Want to convert VS2003 project format to VS2005 format

      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




      "kimiraikko nen" <kimiraikkonen8 5@gmail.comwrot e in message
      news:90506daa-feaf-4724-a7a4-b26a61ed0f40@i1 2g2000prf.googl egroups.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.Microso ft.VisualBasic. CompilerService s.DesignerGener ated()_
      >
      Partial Class UserControl1
      >
      Inherits System.Windows. Forms.UserContr ol
      >
      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:


      Hope this helps.


      Comment

      • Jack Jackson

        #4
        Re: Want to convert VS2003 project format to VS2005 format

        On Mon, 14 Jan 2008 13:38:50 -0500, "Academia"
        <academiaNOSPAM @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.Micros oft.VisualBasic .CompilerServic es.DesignerGene rated()_
        >
        >Partial Class UserControl1
        >
        >Inherits System.Windows. Forms.UserContr ol
        >
        >
        >
        >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="ctlRad iobuttonGroup.d esigner.vb" />

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

        <Compile Include="ctlRad iobuttonGroup.d esigner.vb">
        <DependentUpon> ctlRadiobuttonG roup.vb</DependentUpon>
        </Compile>

        The DependentUpon links the two files.

        Comment

        Working...