Hi there,
I tried to use the VSConvert.xslt from Gordon Weakliem with some success. It seems it needs some update (if I get it working I'll happily post a new version) since VS2003 and NAnt 0.85 work different from the stuff in2002. I had to comment the
throw new SourceForge.NAnt.BuildException( String.Format("Error {0} getting typelib path for guid <xsl:value-of select="@Guid"/>",e.Message),e);
Since the 1.1 Framework would not recognize the Sourceforge namespace.
A fragment of the build file I got look like this:
<target name="compile" description="Compile project" depends="init,WMEncoderLib">
<vbc target="${target.type}" output="${dir.output}\${project.output}" debug="${debug}" define="${define}" optioncompare="${vbc.optionCompare}" optionexplicit="${vbc.optionExplicit}" optionstrict="${vbc.optionStrict}" removeintchecks="${removeIntChecks}" rootnamespace="${rootNamespace}">
<arg value="${unsafe}">
</arg>
<sources>
<include name="AssemblyInfo.vb" />
<include name="clsAvailableCourses.vb" />
<include name="clsCourse.vb" />
<include name="clsCourseChapter.vb" />
<include name="clsCourseDescription.vb" />
<include name="clsCourseSteering.vb" />
<include name="clsCourseSteeringItem.vb" />
<include name="clsGlossary.vb" />
<include name="clsGlossaryEntry.vb" />
<include name="clsNodeTag.vb" />
<include name="clsTimeMarker.vb" />
<include name="frmErrorExplanation.vb" />
<include name="SystemOptions.vb" />
</sources>
<resources>
<include name="frmErrorExplanation.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="${dir.lib}/stdole.dll" />
<include name="${dir.lib}/WMEncoderLib.dll" />
</references>
</vbc>
</target>
I already removed DOC since VBC doesn't understand an empty doc=.
When I now run the compilation I get errors on the langugage itself!
[vbc] C:\Projects\etest\eTest1\SystemOptions.vb(111) : error BC30002: Type 'EventArgs' is not defined.
[vbc]
[vbc] Inherits EventArgs
[vbc] ~~~~~~~~~
... for all my Events ...
[vbc]
[vbc] Catch ex As Exception
[vbc] ~~~~~~~~~
.....
[vbc]
[vbc] MsgBox(ex.ToString)
[vbc] ~~~~~~
[vbc]
[vbc] Dim ser As Xml.Serialization.XmlSerializer
[vbc] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
It seems I'm missing something VERY basic. Could anybody enlighten me?
;-) stw
- [Nant-users] More NAnt mystery -- VBC would compile not recog... stephan