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


+,~wzf+,좷o$yyzW(h礅zxm&j{n왨x%Mj{n+-.ǟalb,y+޷b?+-wv

Reply via email to