Random thoughts about everything and nothing

How to keep intellisense during GAT config editing

with 2 comments

I use (need :-)) intellisense when editing GAT config files. However, it stops working when it can’t resolve a type.

e.g. Intellisense breaks after including TypeAlias.xml, it can resolve “<xi:include …>”

<Recipe Name=”GenerateRepeatingClassT4″ Bound=”false”>
<xi:include href=”TypeAlias.xml” xmlns:xi=”http://www.w3.org/2001/XInclude&#8221; />

Add the “xi:include” element to different complex types defined in the http://schemas.microsoft.com/pag/gax-core&#8221; namespace.

1. Edit the GuidancePackageConfig.xml, located at: C:Program FilesMicrosoft Visual Studio 8XmlSchemas

Note: If the xml file is missing, do a search for it and copy the file into this directory to achieve intellisense.

2. Add xmlns:xi=”http://www.w3.org/2001/XInclude&#8221;, resulting in the following heading.

<xs:schema attributeFormDefault=”unqualified” elementFormDefault=”qualified”

3. Find the “Recipe” element, add the following element “<xs:element ref=”xi:include” minOccurs=”0″></xs:element>”

<xs:element name=”Recipe”>
Defines a recipe.
<xs:element ref=”xi:include” minOccurs=”0″></xs:element>
<xs:element name=”DocumentationLinks” minOccurs=”0″>
A list of documentation links to be displayed by the Guidance Navigator
window as part of the information for a given recipe.
<xs:element ref=”Link” maxOccurs=”unbounded” minOccurs=”0″ />

Use the same approach (step 3) when you encounter other “failing” xi:include references.


Written by Michael

May 8, 2007 at 9:01 pm

Posted in .NET, GAT, VSX

2 Responses

Subscribe to comments with RSS.

  1. Hello,

    I put the lines in the scheme, but cannot solve the reference.

    I wanted to put , but I obtain a conflict in the names of namespaces.

    If I do not put I obtain an error that says: “cannot find referenced symbol: xi: include”
    And does not allow to registar Guidance Package.


    July 12, 2007 at 6:41 pm

  2. Hi Leandro,

    Sorry for the late reaction (i’ve been on vacation these last two weeks :-))

    I’m not using any XIncludes at this moment. I’ve read a blog entry about VS2005 XML intellisense breaking when you use XInclude. Read here:


    July 17, 2007 at 2:03 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: