Alejandro,

Normally, you should be able to use something like this :

<asminfo output="AssemblyInfo.cs" language="CSharp">
    <imports>
        <import name="System" />
        <import name="System.Reflection" />
        <import name="System.EnterpriseServices" />
        <import name="System.Runtime.InteropServices" />
    </imports>
    <attributes>
        <attribute type="ComVisibleAttribute" value="false" />
        <attribute type="CLSCompliantAttribute" value="true" />
        <attribute type="AssemblyVersionAttribute" value="1.0.0.0" />
        <attribute type="AssemblyTitleAttribute" value="My fun assembly" />
        <attribute type="AssemblyDescriptionAttribute" value="More fun than
a barrel of monkeys" />
        <attribute type="AssemblyCopyrightAttribute" value="Copyright (c)
2002, Monkeyboy, Inc." />
        <attribute type="ApplicationNameAttribute" value="FunAssembly" />
    </attributes>
    <references>
        <includes name="System.EnterpriseServices.dll" />
    </references>
</asminfo>

But if you want to use named property, you should use the asis attribute of
the <attribute> element, like this :

  <asminfo output="AssemblyInfo.cs" language="CSharp">
      <imports>
          <import name="log4net.Config" />
      </imports>
      <attributes>
          <attribute type="DOMConfiguratorAttribute"
value="ConfigFile=&quot;config.log4net&quot;,Watch=true" asis="true" />
      </attributes>
      <references>
          <includes name="log4net.dll" />
      </references>
  </asminfo>

This will result in the following output file :

    using log4net.Config;

    [assembly:
DOMConfiguratorAttribute(ConfigFile="config.log4net",Watch=true)]

Hope this helps,

Gert

----- Original Message ----- 
From: "Calbazana, Al" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 03, 2004 8:39 PM
Subject: [Nant-users] log4Net and asminfo task


Hello,

I was wondering if it is possible to include an arbitrary assembly
attribute in my asminfo task.  I'd like to include log4net so that I can
get logging back as part of my release builds.  Unfortunately, the way
my asminfo task is set up, my assembly info settings (log4net settings)
are clobbered when asminfo tasks are used.  Any hints?

Thanks,

Alejandro



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=ick
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to