473,395 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Thanks!
Jul 21 '05 #1
4 2049

"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
> "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
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
>"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
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...
2
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...
8
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...
4
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
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....
4
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...
4
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...
5
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...
4
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...
0
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,...

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.