Command Line compiler help

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

    Command Line compiler help

    Hello,

    I am trying to compile a Windows Forms project through command line. I
    have added some images on the buttons. These images are added as a
    resource and stored in the "Resource" directory inside the project
    directory. My project is quite small, (only a single form).

    I tried running csc in the same folder as my source files using
    command:

    csc /out:My.exe *.cs

    It obviously fails since I am not telling the compiler where my
    Resource files are.

    Error: EncoderWindow.D esigner.cs(224, 61): error CS0234: The type or
    namespace name 'Properties' does not exist in the namespace
    'MPEGCompressio n' (are you missing an assembly reference?)

    Can you help me with the right command? (I tried a lot of combinations
    with /resource: option but without any luck).

    Thanks
  • Rahul

    #2
    Re: Command Line compiler help

    Also please note that I can compile the project in visual studio
    without any problems.

    Comment

    • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

      #3
      Re: Command Line compiler help

      Rahul wrote:
      I am trying to compile a Windows Forms project through command line. I
      have added some images on the buttons. These images are added as a
      resource and stored in the "Resource" directory inside the project
      directory. My project is quite small, (only a single form).
      >
      I tried running csc in the same folder as my source files using
      command:
      >
      csc /out:My.exe *.cs
      >
      It obviously fails since I am not telling the compiler where my
      Resource files are.
      >
      Error: EncoderWindow.D esigner.cs(224, 61): error CS0234: The type or
      namespace name 'Properties' does not exist in the namespace
      'MPEGCompressio n' (are you missing an assembly reference?)
      >
      Can you help me with the right command? (I tried a lot of combinations
      with /resource: option but without any luck).
      Why not build using msbuild and the project file created by VS ?

      (or convert it to nant format with slingshot and use nant if you
      so prefer)

      Arne

      Comment

      • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

        #4
        Re: Command Line compiler help

        Arne Vajhøj wrote:
        Rahul wrote:
        >I am trying to compile a Windows Forms project through command line. I
        >have added some images on the buttons. These images are added as a
        >resource and stored in the "Resource" directory inside the project
        >directory. My project is quite small, (only a single form).
        >>
        >I tried running csc in the same folder as my source files using
        >command:
        >>
        >csc /out:My.exe *.cs
        >>
        >It obviously fails since I am not telling the compiler where my
        >Resource files are.
        >>
        >Error: EncoderWindow.D esigner.cs(224, 61): error CS0234: The type or
        >namespace name 'Properties' does not exist in the namespace
        >'MPEGCompressi on' (are you missing an assembly reference?)
        >>
        >Can you help me with the right command? (I tried a lot of combinations
        >with /resource: option but without any luck).
        >
        Why not build using msbuild and the project file created by VS ?
        >
        (or convert it to nant format with slingshot and use nant if you
        so prefer)
        If you insist then there are some info here:


        Arne

        Comment

        • Peter Duniho

          #5
          Re: Command Line compiler help

          On Mon, 05 May 2008 08:46:05 -0700, Rahul <rahuldj@gmail. comwrote:
          [...]
          Can you help me with the right command? (I tried a lot of combinations
          with /resource: option but without any luck).
          Please do not multi-post. Learn to cross-post properly, by including
          multiple newsgroups as the destination for a single posted article. This
          will help others help you better.

          Comment

          Working...