Command Line Compile

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

    #1

    Command Line Compile

    Hi,

    Trying to learn how to compile C# from the Command line.

    I've got my program running in Visual Studio, but I'm getting an error on
    the command line:

    The type or names space 'UserControl' could not be found (are you missing a
    using directive or an assembly reference).

    I assume I need to include something else?

    How do I specify this?

    Thank you!


  • Drew

    #2
    Re: Command Line Compile


    "Subash" <subash-nospam@nospam.c om> wrote in message
    news:54ooWFFYDH A.2116@cpmsftng xa06.phx.gbl...[color=blue]
    > What you need to specify depends on what is 'UserControl' in the current
    > context. If this is a namespace, you need to specify this as
    > namespace UserControl;
    >
    > if this is a type in one of the namespaces, then you need to specify the
    > namespace (similar to the above) that contains this type.
    >
    > Helps?
    >[/color]

    It helps a little, but I need the exact syntax to use on the command line.

    In my case, I have a class that extends System.Windows. Forms.UserContr ol
    and that is where the error is occuring.

    Thanks,

    Drew



    Comment

    • Neil Chong-Kit

      #3
      Re: Command Line Compile

      Are you command line compiling on the same computer installed with Visual
      Studio ( & the .NET framework)?
      If not, perhaps it can't find the System.Windows. Forms.dll assembly which
      contains System.Windows. Forms.UserContr ol.
      I believe this is normally registered in the global assembly cache, unless
      the .NET framework is not installed correctly?!?


      "Drew" <someone@hotmai l.com> wrote in message
      news:OO1quyFYDH A.1940@TK2MSFTN GP10.phx.gbl...[color=blue]
      >
      > "Subash" <subash-nospam@nospam.c om> wrote in message
      > news:54ooWFFYDH A.2116@cpmsftng xa06.phx.gbl...[color=green]
      > > What you need to specify depends on what is 'UserControl' in the current
      > > context. If this is a namespace, you need to specify this as
      > > namespace UserControl;
      > >
      > > if this is a type in one of the namespaces, then you need to specify the
      > > namespace (similar to the above) that contains this type.
      > >
      > > Helps?
      > >[/color]
      >
      > It helps a little, but I need the exact syntax to use on the command line.
      >
      > In my case, I have a class that extends System.Windows. Forms.UserContr ol
      > and that is where the error is occuring.
      >
      > Thanks,
      >
      > Drew
      >
      >
      >[/color]


      Comment

      Working...