-----Original Message-----
From: Byrd, Payton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 25, 2005 11:38 AM
To: '[EMAIL PROTECTED] Sourceforge. Net'
Subject: [Nant-users] Potential problem with VBC TaskI am trying to use the VBC task in a template, but the <imports> task is proving problematic. The documentation says that this is of type NamespaceImport, but when I try to create a named instance I get an error:
<namespaceimport id="VBImports">
<import name = "Microsoft.VisualBasic" />
<import name = "Microsoft.VisualBasic.Compatibility" />
<import name = "System" />
<import name = "System.Collections" />
<import name = "System.Data" />
<import name = "System.Drawing" />
<import name = "System.Diagnostics" />
<import name = "System.Windows.Forms" />
</namespaceimport>
I get the following error (I get the same error if I name the task NamespaceImport):
Invalid element <namespaceimport>. Unknown task or datatype.
Is there another name I should be using to create a named set for this collection? If this is the designed functionality then how am I supposed to templatize the VBC task since I cannot possibly expect every VB.Net project to have the same set of imports?
Trane eBusiness
QED Team
Phone: 931-905-5386
Fax: 931-648-5901
Title: Message
I
think it depends on the version, but in the latest release you should
be using:
<imports>
<import>
</imports>
- RE: [Nant-users] Potential problem with VBC Task Hart, Leo
- Re: [Nant-users] Potential problem with VBC Task Gert Driesen
- RE: [Nant-users] Potential problem with VBC Task Hart, Leo