You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/faq.md
+22-14Lines changed: 22 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -14,40 +14,44 @@
14
14
15
15
If your failures only happen in the IDE then use `devenv /debugexe devenv.exe MyProj.fsproj`, set debug type to ".NET Framework 4.0" and launch F5. Likewise if your failures only happen in F# Interactive then use `devenv /debugexe fsi.exe MyProj.fsproj`.
16
16
17
-
Set first-catch exception handling (Ctrl-Alt-E, select all CLR exceptions) and set Just My Code off
17
+
Set first-catch exception handling (Ctrl-Alt-E, select all CLR exceptions) and set Just My Code off
18
18
19
19
## A dependency of my type provider is not loading, what do I do?
20
20
21
21
For example, let's say you have this error in your test project:
22
22
23
-
```
23
+
```text
24
24
2>E:\GitHub\admin\joe-provider\test\Joe.Test\ProviderTests.fs(8,10): error FS3033: The type provider 'Joe.Provider.JoeProvider' reported an error: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the file specified. [E:\GitHub\dsyme\joe-provider\test\Joe.Test\Joe.Test.fsproj]
25
25
```
26
26
27
27
Here your test project is referencing your provider project, and your type provider has a dependency on `Newtonsoft.Json.dll`. To see what's going on, run
28
28
29
-
dotnet build -v:n
30
-
29
+
```text
30
+
dotnet build -v:n
31
+
```
32
+
31
33
In the compilation of your test project you will see something like this:
will include the component and unblock you. However, you will need to be careful to make sure this component is laid down in the right place in your nuget
45
51
package, see the instructions above for what the final layout of the nuget package should be.
46
52
47
53
2. When making type providers whose design-time components have dependencies, you should always use a "split" type provider that separates the design-time and runtime components.
48
54
49
-
TODO: give exact .fsproj/nuget instructions to get the dependency into the `typeproviders\fsharp41\netstandard2.0` directory alongside the design-time component.
50
-
51
55
## How do I debug execution of a type provider when using .NET Core tools on Windows?
52
56
53
57
One approach:
@@ -56,11 +60,15 @@ One approach:
56
60
57
61
2. Run an explicit invocation of the compiler using:
0 commit comments