471,326 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

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.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
Jun 27 '08 #1
4 1267
Also please note that I can compile the project in visual studio
without any problems.
Jun 27 '08 #2
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.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
Jun 27 '08 #3
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.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)
If you insist then there are some info here:
http://msdn.microsoft.com/en-us/library/aa645513.aspx

Arne
Jun 27 '08 #4
On Mon, 05 May 2008 08:46:05 -0700, Rahul <ra*****@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.
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Rolf Hemmerling | last post: by
12 posts views Thread by Rhino | last post: by
9 posts views Thread by happy | last post: by
3 posts views Thread by John Salerno | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.