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.
I am using the XML Type Provider with FSharp.Data. I have a line like this:
I set the
Sample.xmlto "Embedded Resource, Do Not Copy".I packed the
MyLibto a NuGet package and used it in another program. But when I now execute it, I get aDirectoryNotFoundExceptionsaying it can't findC:\Path\To\My\SolutionWithMyLib\MyLib\Sample.xmlSo, it seems to ignore the
EmbeddedResourcedirective. Is that not supported with the XML Provider?Followup
I found #1191 and changed the
EmbeddedResourcetoMyLib, MyLib.Sample.xmlbut that did not change anything.