Hi Kevin,

I just added support for this to the <asminfo> task in cvs yesterday :(

I actually compared each line of both files and skipped all comments ... I
did this as files generated with .NET 1.0 or .NET 1.1 only differ in the
comment block that is insert into the generated file :

//--------------------------------------------------------------------------
----
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.940
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </autogenerated>
//--------------------------------------------------------------------------
----

However, I do like your approach a lot better.  So, I'm not sure if I should
keep the current (quick and dirty) implementation or use yours ...

What do you think ?

Gert

----- Original Message ----- 
From: "Kevin Miller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 27, 2004 9:24 PM
Subject: [nant-dev] AsmInfo patch


I found the asminfo task today and fell in love. It solved a few
problems I was having with signing assemblies and paths to the key file.
I was frustrated by the fact that it always generates the
AssemblyInfo.cs file even if there are no changes. This causes the
csc/vbc task to build the project even if only the AssemblyInfo class
has been updated. This is clearly an annoyance during development
builds.

Attached is an updated  that compares the present AssemblyInfo.<x> to
the one being generated. If they are different it writes the new code
one out to disk.

This file is updating the .84 release. Sorry I did not compare to the
latest cvs. Also, I did not add a switch to make this behavior optional.
This post is just to feel out well this enhancement would be received. I
am willing to create a decent patch. Let me know if there is interest in
this feature.

Kevin Miller




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to