473,785 Members | 2,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jun 27 '08 #1
4 1367
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.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
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.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:
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
6064
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 ( and not just 20 messages in a months). How to let GPP/GCC read command line switches from a file ? C/C++ compilers with "MSDOS history background" like Microsoft VC++ 7 ,
12
5378
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 manuals for the proper techniques to prepare an sqlj program. When I went to try the sqlj command, I got this: Exception in thread "main" java.lang.NoClassDefFoundError: sqlj/tools/Sqlj
9
4556
by: happy | last post by:
I need to download Command line C compiler ASAP ? Where can I find the latest and moden one ?
4
1633
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. Thank you in advance for any suggestion? === The project is a nearly empty Windows Form project, and the compilation works fine as far as there is no bitmap in the project form. I have to use the command line compiler and I use the following...
3
1918
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 directory?
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10315
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.