473,569 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# command line compilation

Hi,

I wonder what's the difference of compilation between using command line and
using VS.NET IDE.
For I have a windows service program, there's always a difference between
the output file size, e.g. file size compiled by IDE is 45,580, by command
line is 40,960.
my command line is like:
csc /debug+ /warn:4 /define:DEBUG;TR ACE /r:%MYREFS% /target:exe
/out:svr1.exe *.cs

Thanks!
Jul 21 '05 #1
4 2058

"aladdin" <al*****@discus sions.microsoft .com> wrote in message
news:D2******** *************** ***********@mic rosoft.com...
Hi,

I wonder what's the difference of compilation between using command line
and
using VS.NET IDE.
For I have a windows service program, there's always a difference between
the output file size, e.g. file size compiled by IDE is 45,580, by command
line is 40,960.
my command line is like:
csc /debug+ /warn:4 /define:DEBUG;TR ACE /r:%MYREFS% /target:exe
/out:svr1.exe *.cs

Did you change any of the Visual Studio compilation options? And could you
possibly be not catching as many files as the C# compilation process
produces(resour ces maybe?)
Thanks!

Jul 21 '05 #2
> "Daniel O'Connell [C# MVP]" wrote:

Did you change any of the Visual Studio compilation options? And could you
possibly be not catching as many files as the C# compilation process
produces(resour ces maybe?)

Yes, I copied all Project Build options to command line, and my program is a
windows service program, no resource file in the project. So I feel very
strange about the result.
Jul 21 '05 #3
aladdin <al*****@discus sions.microsoft .com> wrote:
Did you change any of the Visual Studio compilation options? And could you
possibly be not catching as many files as the C# compilation process
produces(resour ces maybe?)

Yes, I copied all Project Build options to command line, and my program is a
windows service program, no resource file in the project. So I feel very
strange about the result.


Are there any extra resources in the version build with VS?

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #4
>"Jon Skeet [C# MVP]" wrote:
Are there any extra resources in the version build with VS?

I think no, because in the obj/ folder there's no any .resource files. It's
just a command-line exe.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2053
by: rforman1 | last post by:
I have found many threads with this question asked and ostensibly answered, but none with an example of how exactly to do it. Help! I know that in order to set up the values of command line arguments from within the IDE, I go to Project Properties, Configuration Properties, and then the text box labeled "Command Line Arguments" under the...
2
453
by: aladdin | last post by:
I use outside .jpg picture files in a Windows Form project. I try to compile use csc.exe at command line. I use resgen.exe to generate a resource file like: resgen.exe Form1.resx MyNameSpace.MainForm.resources then use csc to compile: csc /nologo /t:winexe /out:app1.exe /res:MyNameSpace.MainForm.resources /win32icon:App.ico *.cs The...
8
3201
by: Peter A. Schott | last post by:
Per subject - I realize I can copy/paste a line at a time into an interactive session when I'm trying to debug, but was wondering if there is any tool out there that allows me to copy sections of working Python scripts to paste into my interactive console and let those run so I don't have to copy line-by-line. Not sure if iPython would meet...
4
2036
by: kendf | last post by:
Appreciated if someone could tell me how to compile the MS Exception Management Application Block downloaded from MS Official site?
4
1623
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...
4
3097
by: Todd Acheson | last post by:
TOOLS: Visual Studio.NET 2003 .NET SDK GOAL: Reproduce the DLL's that our Visual Studio.NET development boxes create, by using the SDK command line compilers DILLEMA: RESX Files, how to handle How does VS.NET handle RESX files when a developer builds the solution? Does VS.NET use the "/res:filename.resx" command line option? Does it
4
300
by: aladdin | last post by:
Hi, I wonder what's the difference of compilation between using command line and using VS.NET IDE. For I have a windows service program, there's always a difference between the output file size, e.g. file size compiled by IDE is 45,580, by command line is 40,960. my command line is like: csc /debug+ /warn:4 /define:DEBUG;TRACE /r:%MYREFS%...
5
5662
by: Emmanuel | last post by:
Hi, I am using VS 2003 to build my (csharp) solution. 1. Is there a way to reveal the command line options that VS is using during compilation of a project file, in order to build a batch file/makefile ? 2. Is there an option in the command line compiler that builds a VS project ?
4
2621
by: wxforecaster | last post by:
As alluded to in my post yesterday, I'm trying to compile a common C utility in Windows. It's only reference is to zlib.h, which needs zconf.h and in turn libz.a On Unix I've compiled this with success by running: gcc -lz -o foo.exe foo.c (where -lz is a link to 'z' or libz.a) I've placed zlib.h and zconf.h in the VC include folder, and...
0
7930
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. ...
0
8138
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...
1
7681
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...
0
7983
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6290
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5228
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.