I am trying to use the XmlTypeProvider to create the type using an xsd structure. I have fired up VS2017 and saved a new fsx file in my awesome scripts folder. In the same folder I have a packages folder that contains the version 3.3.3 of FSharp.Data. Loading the dll and opening it works as expected.
In my case, I have 3 xsd docs that have a hierarchy. I have placed them in them all in one folder names XSD next to the fsx file. When trying to create a type from either of those xsds, everything is OK. I get the type, intellisense, the whole lot.
Reading the docs, suggests to use the ResolutionFolder parameter if there are other schema files (couldn't really tell by that other if it means hierarchy-related or simply more than one).
If I try to create a type using the following syntax:
type Reconciliation = XmlProvider<ResolutionFolder = @"...\XSD", Schema=@"...\grandpa.xsd">
I get the following error:
error FS1109: A refererence to the type
FSharp.Data.XmlProvider, ResolutionFolder="sameValue",Schema="sameValue"
in assembly FSharp.Data was found
but the type could not be found in that assembly.
Trying the other xsd files was, as expected, futile.