Skip to content

Commit

Permalink
Merge pull request #1334 from psfinaki/patch-1
Browse files Browse the repository at this point in the history
Update JsonProvider.fsx
  • Loading branch information
dsyme authored Jan 13, 2021
2 parents 00620a9 + ca02efa commit 6f74e8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/content/library/JsonProvider.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,12 @@ access the sample JSON. This works fine when the sample is specified inline, but
the sample is specified as a local file (unless you distribute the samples with your library).
For this reason, the JSON provider lets you specify samples as embedded resources using the
static parameter `EmbeddedResource`. If you are building a library `MyLib.dll`, you can write:
static parameter `EmbeddedResource` (don't forget then to [include the file](https://docs.microsoft.com/en-us/visualstudio/ide/build-actions) as EmbeddedResource in the
project file). If you are building a library `MyLib.dll`, you can write:
*)
type WB = JsonProvider<"../data/WorldBank.json",
EmbeddedResource="MyLib, worldbank.json">
EmbeddedResource="MyLib, MyLib.data.worldbank.json">

(**
You still need to specify the local path, but this is only used when compiling `MyLib.dll`.
Expand Down

0 comments on commit 6f74e8b

Please sign in to comment.