Title: Potential problem with VBC Task

I 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?

Payton Byrd

Trane eBusiness

QED Team

Phone: 931-905-5386 

Fax: 931-648-5901

Reply via email to