Wow!! If that really is the cause then I'm amazed! Whatever Nant uses as 
default optimizations result in a 65% reduction in size! Well, at least in this 
case... 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Ray Johnson
> Sent: Tuesday, May 03, 2005 3:36 PM
> To: 'Aaron Elder'; 'Thibaut Barrère'; 'Foster, Richard - PAL'
> Cc: nant-users@lists.sourceforge.net
> Subject: RE: [Nant-users] File sizes
> 
> 
> This may be due to code optimization settings.  We have seen 
> this as well where the "default" optimizations (and thus some 
> of the compiler flags) are different between Nant and 
> different versions of VS.Net.
> 
> We worked around this my explicitly setting the use of 
> certain flags in VS.Net.  We did this by setting it to 
> something else and then changing it back.  This in turn 
> forces the appropriate attribute to be written in the project 
> file which will force Nant not to use a default value but use 
> the set value.
> 
> Ray 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Aaron Elder
> Sent: Tuesday, May 03, 2005 1:54 PM
> To: Thibaut Barrère; Foster, Richard - PAL
> Cc: nant-users@lists.sourceforge.net
> Subject: RE: [Nant-users] File sizes
> 
> Well this is just crazy.  I have use ILDASM to compare the IL 
> of all the code and it is identical!  I also compared the 
> manifests, it turns out the manifest of the smaller DLL is 
> actually BIGGER that manifest of the larger DLL (it had a 
> text change in the Assembly Info).
> 
> I am going to re-create my VS project and see if I can 
> reproduce this in a simpler manner that I can then post.
> 
> BTW - The application is a DLL, so I do no think there is an 
> ICO resource in the larger version.
> 
> 
> 
> Aaron Elder
> Director, Software Development
> 
> invokesystems
> solid technology. sound thinking.
> http://www.invokesystems.com 
> 
> 
> -----Original Message-----
> From: Thibaut Barrère [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 03, 2005 1:09 PM
> To: Foster, Richard - PAL
> Cc: Aaron Elder; nant-users@lists.sourceforge.net
> Subject: Re: [Nant-users] File sizes
> 
> Hi Aaron
> 
> maybe (not sure it's allowed though) you could post the two 
> binaries on the list so we can have a look at it ? it's 
> rather interesting.
> 
> cheers
> 
> 2005/5/3, Foster, Richard - PAL <[EMAIL PROTECTED]>:
> > Aaron,
> >  
> > One other thought. Do you have a specific application icon? If not, 
> > perhaps Visual Studio is adding in the default application icon 
> > resource, but NAnt isn't? I wouldn't expect that to be 13K 
> worth, but 
> > it could be a contributing factor.
> >  
> > Regards,
> > Richard
> > ________________________________
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf 
> Of Castro, 
> > Edwin Gabriel (Firing Systems Engr.)
> > Sent: Tuesday, May 03, 2005 12:25
> > To: Aaron Elder; nant-users@lists.sourceforge.net
> > Subject: RE: [Nant-users] File sizes
> > 
> > 
> > Hi Aaron,
> >  
> > Out of curiosity, are both versions functional? I assume they are. 
> > Have you tried to using ildasm (and similar tools) to inspect both
> assemblies?
> >  
> > --
> > Edwin
> > 
> > 
> > ________________________________
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Aaron 
> > Elder
> > Sent: Monday, May 02, 2005 4:07 PM
> > To: nant-users@lists.sourceforge.net
> > Subject: [Nant-users] File sizes
> > 
> > 
> > 
> > 
> > Hey everyone,
> > 
> >  
> > 
> > I just recently converted a Visual Studio project to use Nant.  The 
> > file has only two VERY simply CS files (AssemblyInfo + 1 code file) 
> > and there are no external dependencies.
> > 
> >  
> > 
> > When I compile the DLL in VS, the file size is 20k... when 
> I compile 
> > the same code in Nant the file is 7k.
> > 
> >  
> > 
> > Debug, trace, optimization settings are all identical 
> between VS and Nant.
> 
> > The files are identical.
> > 
> >  
> > 
> > Does anybody have any idea what may be going on?
> > 
> >  
> > 
> > Aaron Elder
> >
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 
> great events, 4 opportunities to win big! Highest score 
> wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. 
> Visit http://www.necitguy.com/?r 
> _______________________________________________
> Nant-users mailing list
> Nant-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 
> great events, 4 opportunities to win big! Highest score 
> wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. 
> Visit http://www.necitguy.com/?r 
> _______________________________________________
> Nant-users mailing list
> Nant-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to