C# command line compilation

G

Guest

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% /target:exe
/out:svr1.exe *.cs

Thanks!
 
D

Daniel O'Connell [C# MVP]

aladdin said:
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% /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(resources maybe?)
 
G

Guest

Daniel O'Connell said:
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(resources 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.
 
J

Jon Skeet [C# MVP]

aladdin said:
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?
 
G

Guest

Jon Skeet said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top