(apologies for the crap formatting of my mails subject and for the spam, damn mail client... $#à&! )
hi, you can probably try the following : - move this source code line from your AssemblyInfo file to a new file (eg KeyInfo.cs) [assembly: AssemblyKeyFile(@"..\..\developers.key")] - whenever you build with NAnt, use the asminfo task to generate this file, overwriting the old value with what you want <asminfo output="KeyInfo.cs" language="CSharp"> <imports> <import name="System.Reflection" /> </imports> <attributes> <attribute type="AssemblyKeyFileAttribute" value="..\NAnt.key" /> </attributes> </asminfo> developpers would not even know you changed the key for building ;) -------- From: Martin Webrant TACMa [mailto:[EMAIL PROTECTED] Date: 16/09/2003 13:34 To: [EMAIL PROTECTED] Cc: Subject: [Nant-users] Request for SolutionTask It would be great to be able to set additional defines for the compiler when you build with the <solution> task. We could for example need a define that sets the AssemblyKeyFile attribute correct if we build with VS.NET or NANT #ifdef NANT [assembly: AssemblyKeyFile(@"..\NAnt.key")] #else [assembly: AssemblyKeyFile(@"..\..\developers.key")] #endif ...or are there such things already? Regards Martin N¬±ù隊X¬²š'²ŠÞu¼“†)äç¤Yé\¢g¢ž’š½éá¶ÚþØbžHzG(›û5©íºǫ²f¢–)à–+-5©íºǫ²X¬¶Ë(º·~Šàzw†Ûi³ÿåŠËl²‹«qçè®§zßåŠËlþX¬¶)ߣùڞ۬z»