Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > xinclude warning/error
 

xinclude warning/error

I have seen a few posts on this but was not able to find a resolution. I am trying to organize my package by putting recipes in a Recipes folder. In the recipes collection of the guidance package xml file I use:

<xi:include href="Recipes/CreateSolution.xml" />

Which give me a warning:

Warning1The element 'Recipes' in namespace 'http://schemas.microsoft.com/pag/gax-core' has invalid child element 'include' in namespace 'http://www.w3.org/2001/XInclude'. List of possible elements expected: 'Recipe' in namespace 'http://schemas.microsoft.com/pag/gax-core'.

I have tried adding elements like xml="parse" or xmlns:xi=http://www.w3.org/2001/XInclude but I keep getting the warning and an error when I try to register the package.

I copied the recipe code directly out of the package and created the include xml file from it. I modeled it on the the code in the WSSF and it looks right. I comment out the xinclude and copy the code back into the file and it works so I don't think the problem lies with this tag.

lcj  Friday, March 30, 2007 12:35 PM
Can you paste here your entire main manifest file and your entire CreateSolution.xml file?

thanks,
-Victor.
vga  Friday, March 30, 2007 3:31 PM
Can you paste here your entire main manifest file and your entire CreateSolution.xml file?

thanks,
-Victor.
vga  Friday, March 30, 2007 3:31 PM

Here is the manifest. I don't know how the recipe will help the error is on the xi:include statement:

<?xml version="1.0" encoding="utf-8" ?>

<GuidancePackage xmlns="http://schemas.microsoft.com/pag/gax-core"

Name="TestGuidancePackage"

Caption="TestGuidancePackage"

Description="A Test Guidance Package"

Guid="07DCFF9C-0BB5-47f5-9017-283E34DAAB57"

SchemaVersion="1.0">

<Recipes>

<xi:include href="Recipes/CreateSolution.xml" />

</Recipes>

</GuidancePackage>

lcj  Wednesday, April 04, 2007 6:35 PM

Try adding:

xmlns:xi="http://www.w3.org/2001/XInclude"

as an attribute of the <GuidancePackage> element.

Also add parse="xml" as an attribute of the <xi:include> element.

And make sure the starting of your recipe config filelooks like this:

<?xml version="1.0" encoding="utf-8" ?>
<Recipe
Name="YourRecipeName"
xmlns="http://schemas.microsoft.com/pag/gax-core"
xmlns:xi="http://www.w3.org/2001/XInclude" >

vga  Friday, April 06, 2007 7:54 AM

In addition to the previous post, look inside your Recipes folder andcheck the File Properties (F4) of each recipe.xml file and make sure the 'Build Action' is set to Content and 'Copy to Output Directory' is set to Copy if newer or Copy always. It won't take away the squiggly line, but it will allow your GAT project to Register.

Mark3575860  Friday, June 01, 2007 5:19 AM

You can use google to search for other answers

Custom Search

More Threads

• Retreiving project for an unbound recipe
• Project Type "Service Factory: Modeling Edition" not found under Guidance Packages
• Boolean Condition Doesn´t Work
• DTE Set Startup Project?
• GAT Roadmap
• Guidance Package Manager doesn't work in VS2008SP1
• Use T4 when unfolding solution
• Change rootnamespace key for guidace packages
• SCSF
• Bullet points for building a guidance automation package from scratch.