C# command line compilation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: aladdin (aladdin_at_discussions.microsoft.com)
Date: 12/16/04


Date: Wed, 15 Dec 2004 19:57:04 -0800

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!



Relevant Pages

  • Re: error CS0016: Could not write to output file - build problems - vs.net
    ... > Performing main compilation... ... Could not write to output file ... > have only project references, and none of the references to these ... > builds within the IDE but this is increasingly more painfull. ...
    (microsoft.public.vsnet.ide)
  • Re: Solution Build question / issue....
    ... Do you have any code inside of conditional compilation directives (#if ... We have a web project that has a support dll that uses the following ... >command line to get things into production, not the IDE. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: C# command line compilation
    ... > I wonder what's the difference of compilation between using command line ... > using VS.NET IDE. ... > For I have a windows service program, ... Did you change any of the Visual Studio compilation options? ...
    (microsoft.public.dotnet.general)
  • Re: Math Error in the .NET Framework 1.1.4322 SP1
    ... > returns incorrect results for varying powers of 2 that depend on whether the ... > program is run from within the IDE or from the command line. ... > in further calculations, which can throw off some functions. ...
    (microsoft.public.dotnet.framework)
  • Re: Math Error in the .NET Framework 1.1.4322 SP1
    ... > returns incorrect results for varying powers of 2 that depend on whether the ... > program is run from within the IDE or from the command line. ... > in further calculations, which can throw off some functions. ...
    (microsoft.public.dotnet.general)