Skip to content

EmbeddedResource seems to be ignored for the XML Type Provider #1310

@rabejens

Description

@rabejens

I am using the XML Type Provider with FSharp.Data. I have a line like this:

type internal SomethingFromXML = XmlProvider<"./Sample.xml", EmbeddedResource="MyLib, Sample.xml">

I set the Sample.xml to "Embedded Resource, Do Not Copy".

I packed the MyLib to a NuGet package and used it in another program. But when I now execute it, I get a DirectoryNotFoundException saying it can't find C:\Path\To\My\SolutionWithMyLib\MyLib\Sample.xml

So, it seems to ignore the EmbeddedResource directive. Is that not supported with the XML Provider?

Followup

I found #1191 and changed the EmbeddedResource to MyLib, MyLib.Sample.xml but that did not change anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions