I have copied the schema from https://docs.microsoft.com/en-us/openspecs/office_standards/ms-customui/5f3e35d6-70d6-47ee-9e11-f5499559f93a into a file and used the following code to access:
[<Literal>]
let RibbonXSDPath = @"C:\Projects\Ribbon CustomUI.xsd"
type RibbonBuilder = XmlProvider<Schema = RibbonXSDPath>
An error is reported in a dialogue box:
dotnet.exe - System Error
A new guard page for the stack cannot be created.
Not sure but I believe this is a stack overflow. Is this a bug or is there any workaround for this?