Skip to content

Commit 40fe633

Browse files
authored
Fix formatting and clarify package source instructions
1 parent 0516371 commit 40fe633

File tree

1 file changed

+4
-4
lines changed
  • docs/fsharp/tools/fsharp-interactive

1 file changed

+4
-4
lines changed

docs/fsharp/tools/fsharp-interactive/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ This tells the resolution engine to take into account the remote and/or local so
185185
You can specify as many package sources as you like in a script.
186186

187187
> [!IMPORTANT]
188-
> Relative paths aren't currently supported with the `#i` directive. You must use absolute paths for local package sources. This limitation is tracked in [dotnet/fsharp#12969](https://github.com/dotnet/fsharp/issues/12969).
189-
>
188+
> Relative paths aren't currently supported with the `#i` directive. You must use absolute paths for local package sources. This limitation is tracked in [dotnet/fsharp#12969](https://github.com/dotnet/fsharp/issues/12969).
189+
>
190190
> **Workaround:** You can programmatically construct an absolute path using `__SOURCE_DIRECTORY__` and `System.IO.Path.Combine()`, then use string interpolation to pass it to the `#i` directive. For example:
191-
>
191+
>
192192
> ```fsharp
193193
> let localSource = System.IO.Path.Combine(__SOURCE_DIRECTORY__, "relative/path/to/my/local/source")
194194
> #i $"""nuget: {localSource}"""
195195
> ```
196-
>
196+
>
197197
> [!NOTE]
198198
> There's currently a limitation for scripts that use framework references (e.g.`Microsoft.NET.Sdk.Web` or `Microsoft.NET.Sdk.WindowsDesktop`). Packages like Saturn, Giraffe, WinForms are not available. This is being tracked in issue [#9417](https://github.com/dotnet/fsharp/issues/9417).
199199
> WinForms, still works in the .NET Framework version of F# Interactive.

0 commit comments

Comments
 (0)