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:

target name="compile" description="Compile project">
    <vbc target="library" output="bin\test.dll" debug="true"  
optioncompare="text" optionexplicit="true"
optionstrict="true" removeintchecks="false"
rootnamespace="testlib" >
      <sources>
        <include name="**/*.vb" />
      </sources>
      <resources dynamicprefix="true" prefix="testlib">
        <include name="**/*.resx" />
    </resources>
      <references>
        <include name="System.dll" />
        <include name="System.Data.dll" />
        <include name="System.Xml.dll" />
        <include name="System.Windows.Forms.dll" />
        <include name="System.Drawing.dll" />
        <include name="stdole.dll" />
        <include name="bin/AxInterop.WMEncoderLib.dll" />
        <include name="bin/SVGSharp.dll" />
        <include name="bin/SharpZipLib.dll" />
        <include name="bin/Interop.EZTOOLSLIB_NET.dll" />
        <include name="bin/AxInterop.AxEZTOOLSLIB_NET.dll" />
        <include name="C:/WMSDK/WMPSDK9/redist/WMPLib.dll" />
        <include name="bin/AxInterop.AxWMPLib.dll" />
      </references>
    </vbc>

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

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

I tried to run the example in nant-0.85-rc2\examples\HelloWindowsForms --> that one works.

What do I do wrong?
:-( stw

Reply via email to