Manual Compiling

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

    #1

    Manual Compiling

    I am trying to learn how to compile my asp.Net application manually without
    VS.Net.

    I have attempted to compile one module with the following command
    vbc /target:library DatabaseAccess. vb /imports:system. data
    /imports:system. data.sqlclient
    but I get a load of errors and they usually highlight an object in the
    system.data.sql client of system.data. What option do I need to be using to
    make these error go away?

    If I have a Page.aspx and a Page1.aspx.vb and Page1.aspx.vb calls "Common.vb"
    how do I comiple this so it all works?

    Thanks in advance for your assistance!!!!


  • Victor Garcia Aprea [MVP]

    #2
    Re: Manual Compiling

    Hi Jim,

    It would help if you could post the exact and complete text for the error
    message you're getting,

    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:

    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    and not by private mail.

    "Jim Heavey" <Annomous@hotma il.com> wrote in message
    news:%23QVk71nm DHA.2676@TK2MSF TNGP11.phx.gbl. ..[color=blue]
    > I am trying to learn how to compile my asp.Net application manually[/color]
    without[color=blue]
    > VS.Net.
    >
    > I have attempted to compile one module with the following command
    > vbc /target:library DatabaseAccess. vb /imports:system. data
    > /imports:system. data.sqlclient
    > but I get a load of errors and they usually highlight an object in the
    > system.data.sql client of system.data. What option do I need to be using[/color]
    to[color=blue]
    > make these error go away?
    >
    > If I have a Page.aspx and a Page1.aspx.vb and Page1.aspx.vb calls[/color]
    "Common.vb"[color=blue]
    > how do I comiple this so it all works?
    >
    > Thanks in advance for your assistance!!!!
    >
    >[/color]


    Comment

    • bruce barker

      #3
      Re: Manual Compiling

      /import only specifies namespaces, for any library routines you call (or any
      they call) you need a /library






      "Jim Heavey" <Annomous@hotma il.com> wrote in message
      news:#QVk71nmDH A.2676@TK2MSFTN GP11.phx.gbl...[color=blue]
      > I am trying to learn how to compile my asp.Net application manually[/color]
      without[color=blue]
      > VS.Net.
      >
      > I have attempted to compile one module with the following command
      > vbc /target:library DatabaseAccess. vb /imports:system. data
      > /imports:system. data.sqlclient
      > but I get a load of errors and they usually highlight an object in the
      > system.data.sql client of system.data. What option do I need to be using[/color]
      to[color=blue]
      > make these error go away?
      >
      > If I have a Page.aspx and a Page1.aspx.vb and Page1.aspx.vb calls[/color]
      "Common.vb"[color=blue]
      > how do I comiple this so it all works?
      >
      > Thanks in advance for your assistance!!!!
      >
      >[/color]


      Comment

      • vMike

        #4
        Re: Manual Compiling

        Try creating a text file along the following lines where the /r are the dlls
        you are importing. (this may take some time to get right) then do vbc
        @yourtextfile at dos prompt. The following should be on one line.

        /t:library /out:c:\pathtobi n\nameof.dll c:\pathtofile\n ame.vb /r:system.dll
        /r:system.web.dl l /r:system.xml.dl l /r:system.data.d ll

        "Jim Heavey" <Annomous@hotma il.com> wrote in message
        news:%23QVk71nm DHA.2676@TK2MSF TNGP11.phx.gbl. ..[color=blue]
        > I am trying to learn how to compile my asp.Net application manually[/color]
        without[color=blue]
        > VS.Net.
        >
        > I have attempted to compile one module with the following command
        > vbc /target:library DatabaseAccess. vb /imports:system. data
        > /imports:system. data.sqlclient
        > but I get a load of errors and they usually highlight an object in the
        > system.data.sql client of system.data. What option do I need to be using[/color]
        to[color=blue]
        > make these error go away?
        >
        > If I have a Page.aspx and a Page1.aspx.vb and Page1.aspx.vb calls[/color]
        "Common.vb"[color=blue]
        > how do I comiple this so it all works?
        >
        > Thanks in advance for your assistance!!!!
        >
        >[/color]


        Comment

        Working...