----- Original Message -----
From: "Sascha Andres" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 14, 2003 3:09 PM
Subject: [Nant-users] asminfo und ComVisible Attribut


> Hi,
>
> I want to set the ComVisible attribute to false. It is
> defined in System.Runtime.InteropServices. So I added an
> import tag for that assembly to asminfo's imports. I also
> added '<attribute type="ComVisibleAttribute" value="false"
> />' to the attributes node. The task now genereates
> '[assembly: ComVisibleAttribute(false)]' which should be
> '[assembly:ComVisible(false)]'.

I think I'm missing the problem here : why is '[assembly:
ComVisibleAttribute(false)]' wrong ?

>
> If I leave the Attribute away in the attribute node, I get
> the error 'Assembly attribute with type ComVisible could not
> be loaded.'.

The <asminfo> task is indeed incapable of locating the attribute type if you
don't specifiy its actual type name (meaning with the Attribute suffix), as
ComVisible itself is not the actual type name.

Please help me understand your problem ...

Gert



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to