473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 1347
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.