By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,686 Members | 2,392 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,686 IT Pros & Developers. It's quick & easy.

C# command line compilation

P: n/a
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!
Jul 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"aladdin" <al*****@discussions.microsoft.com> wrote in message
news:D2**********************************@microsof t.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;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?)
Thanks!

Jul 21 '05 #2

P: n/a
> "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(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.
Jul 21 '05 #3

P: n/a
aladdin <al*****@discussions.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(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.


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

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #4

P: n/a
>"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 discussion thread is closed

Replies have been disabled for this discussion.