[EMAIL PROTECTED] wrote:
Hi there,
I'm trying to get VBC working with my project. I use heavily COM interop. I'm using nant-0.85-rc2.
This is my vbc task:
[snip]
When I run the task the resources get created and then I get tons of: error BC30002: Type 'xxx' is not defined.
What puzzles me if I look at xxx they are all core classes:
EventArgs, Exception, IComparable, Hashtable, Now, Val, Right, Int, Xml.Serialization.XmlSerializer, IIf, Format, vbCrLf
maybe you need an imports node :
<imports>
<import namespace="Microsoft.VisualBasic" />
<import namespace="System" />
<import namespace="System.Collections" />
<import namespace="System.Data" />
<import namespace="System.Diagnostics" />
<import namespace="System.Drawing" />
<import namespace="System.Windows.Forms" />
</imports>In addition I get
error BC30466: Namespace or type 'Interop' for the Imports 'AxMicrosoft.MediaPlayer.Interop' cannot be found.
[vbc]
[vbc] Imports AxMicrosoft.MediaPlayer.Interop
[vbc] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
despidte i put the include there: include name="bin/AxInterop.AxWMPLib.dll
can you check the namespace in AxInterop.AxWMPLib.dll with ildasm to verify that it is actually " AxMicrosoft.MediaPlayer.Interop" ?
Ian
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nant-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users
