Command Line compiler help


R

Rahul

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.Designer.cs(224,61): error CS0234: The type or
namespace name 'Properties' does not exist in the namespace
'MPEGCompression' (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
 
Ad

Advertisements

R

Rahul

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

Arne Vajhøj

Rahul said:
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.Designer.cs(224,61): error CS0234: The type or
namespace name 'Properties' does not exist in the namespace
'MPEGCompression' (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
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top