Greetings,
I was wondering if it is possible to compile two C# source files at the
same time? I am attempting to use the code below from a Command Prompt,
but am receiving an error:
csc C:\C#\C#_Samples\frmMain.cs frmInstructions.cs
[Note: "frmMain" is the first form which, in turn, calls the form,
"frmInstructions". If I just try to compile frmMain.cs, I receive an
error stating the following:
"The type or namespace 'frmInstructions' could not be found (are you
missing a using directive or an assembly reference?)].
Is there something wrong with my syntax?
Thanks in advance!
Sherwood
*** Sent via Developersdex http://www.developersdex.com *** 6 1285
Could it simply be that your paths missing from the second cs file?
csc C:\C#\C#_Samples\frmMain.cs C:\C#\C#_Samples\frmInstructions.cs
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"OutdoorGuy" <Ou********@fishing.com> wrote in message
news:em**************@TK2MSFTNGP09.phx.gbl... Greetings,
I was wondering if it is possible to compile two C# source files at the same time? I am attempting to use the code below from a Command Prompt, but am receiving an error:
csc C:\C#\C#_Samples\frmMain.cs frmInstructions.cs
[Note: "frmMain" is the first form which, in turn, calls the form, "frmInstructions". If I just try to compile frmMain.cs, I receive an error stating the following: "The type or namespace 'frmInstructions' could not be found (are you missing a using directive or an assembly reference?)].
Is there something wrong with my syntax?
Thanks in advance!
Sherwood *** Sent via Developersdex http://www.developersdex.com ***
Hi OutdoorGuy,
Yes, you can reference
csc /out:YourFile.exe *.cs
to compile everything in the directory and even use switches like /recurse
to include subdirectories.
You can get more info on how to use csc.exe at http://msdn.microsoft.com/library/de...ommandline.asp
Cheers,
Steve Goodyear
Vancouver, Canada
OutdoorGuy <Ou********@fishing.com> wrote: I was wondering if it is possible to compile two C# source files at the same time? I am attempting to use the code below from a Command Prompt, but am receiving an error:
csc C:\C#\C#_Samples\frmMain.cs frmInstructions.cs
[Note: "frmMain" is the first form which, in turn, calls the form, "frmInstructions". If I just try to compile frmMain.cs, I receive an error stating the following: "The type or namespace 'frmInstructions' could not be found (are you missing a using directive or an assembly reference?)].
Is there something wrong with my syntax?
Are both frmMain and frmInstructions.cs in the same namespace? If not,
does frmMain contain the appropriate using directive?
Could you post a short but complete program which demonstrates the
problem?
See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
"OutdoorGuy" <Ou********@fishing.com> wrote in message
news:em**************@TK2MSFTNGP09.phx.gbl... Greetings,
I was wondering if it is possible to compile two C# source files at the same time? I am attempting to use the code below from a Command Prompt, but am receiving an error:
csc C:\C#\C#_Samples\frmMain.cs frmInstructions.cs
[Note: "frmMain" is the first form which, in turn, calls the form, "frmInstructions". If I just try to compile frmMain.cs, I receive an error stating the following: "The type or namespace 'frmInstructions' could not be found (are you missing a using directive or an assembly reference?)].
Is there something wrong with my syntax?
Thanks in advance!
Sherwood *** Sent via Developersdex http://www.developersdex.com ***
Your second file is missing the path.
csc C:\C#\C#_Samples\frmMain.cs frmInstructions.cs
make it:
csc C:\C#\C#_Samples\frmMain.cs C:\C#\C#_Samples\frmInstructions.cs
or better make C:\C#\C#_Samples you current directory so you can simply run:
csc frmMain.cs frmInstructions.cs
Willy.
Willy Denoyette [MVP] <wi*************@telenet.be> wrote: Your second file is missing the path.
I wondered whether that was the problem too, but if it *were* the
problem, the very first error message would be that frmInstructions.cs
wasn't found. I at least *hope* the OP would have investigated that
first!
<snip>
--
Jon Skeet - <sk***@pobox.com> http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om... Willy Denoyette [MVP] <wi*************@telenet.be> wrote: Your second file is missing the path.
I wondered whether that was the problem too, but if it *were* the problem, the very first error message would be that frmInstructions.cs wasn't found. I at least *hope* the OP would have investigated that first!
Jon,
Absolutely right, the problem must lay elsewere.
Willy. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: A. B., Khalid |
last post by:
Hello all.
After a search on Google it would seem that the users of
Mingw have not had good results in compiling the python
sources natively. See at least:
...
|
by: Gary |
last post by:
Had a recent opportunity to grab some MP2 audio encoder source to use
in a little utility I am writing in support of a Korg portable
multitrack digital recorder. It is LGPL C and my project is...
|
by: Steven T. Hatton |
last post by:
Is there anything that gives a good description of how source code is
converted into a translation unit, then object code, and then linked. I'm
particularly interested in understanding why putting...
|
by: Rudy Ray Moore |
last post by:
Hi guys,
I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6.
Some things I like (proper for loop variable scoping, for example), but some
other things are troubling me.
One...
|
by: Christina N |
last post by:
When compiling my ASP.Net application, VS puts the new DLL under the local
cached directory 'VSWebCache' in stead of on the server. How can I make it
save the DLL file on the server when compiling?...
|
by: Mike Hutton |
last post by:
I need some help.
I am trying to set up our development environment so as to make life
easy for my fellow developers (none of whom have used ASP.NET or
VS.NET before). We are developing our...
|
by: skumar434 |
last post by:
Hi everybody,
I am faceing problem with strings.
The code is given bellow .In this program i am tring to copy data from
a file into structure .
I am able to copy the data ,but the dat is...
|
by: Gaijinco |
last post by:
I'm having a weird error compiling a multiple file project:
I have three files:
tortuga.h where I have declared 5 global variables and prototypes for
some functions.
tortuga.cpp where I...
|
by: p.s.bijpost |
last post by:
Hello all:
I'm trying to edit a little (freeware) palm app to my wishes but run
into problems as soon as re-save the original .c file. During compile
("make" in terminal)I get:...
|
by: Tomás Ó hÉilidhe |
last post by:
I'd post this on a gcc newsgroup but I'd be more productive talking
to the wall.
Anyway, let's say someone throws some source code at you for a
particular program and says, "Just compile it, it...
|
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...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |