472,954 Members | 1,851 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,954 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 1330
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rolf Hemmerling | last post by:
Hello ! This question is about how to configure the most popular C++ compiler. If you think that I am wrong here, please tell me what newsgroup WITH relevant, existing AUDIENCE to ask again (...
12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
9
by: happy | last post by:
I need to download Command line C compiler ASAP ? Where can I find the latest and moden one ?
4
by: Francesco Martinelli | last post by:
I need to create a multiple file assemby: this requires working directly with the command line compiler (no IDE support!). After a few tests I found my problem comes from the issue described below....
3
by: John Salerno | last post by:
I just installed the SDK, but when I typed csc /help on the command line (from the C: directory), it said 'csc' wasn't a recognized command. Why didn't that work? Do I need to be in a different...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.