From 7edd135173077c8d14dba61d76693c2800622798 Mon Sep 17 00:00:00 2001 From: Adarsh Ramakrishna <69494124+adarsh6980@users.noreply.github.com> Date: Thu, 24 Sep 2026 12:25:08 +0100 Subject: [PATCH] Add directory note to F# get-started tutorial Clarified instructions for adding projects to the FSharpSample solution and emphasized the directory context for commands. --- docs/fsharp/get-started/get-started-command-line.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/fsharp/get-started/get-started-command-line.md b/docs/fsharp/get-started/get-started-command-line.md index 1925b78ef0197..c9119fea676dc 100644 --- a/docs/fsharp/get-started/get-started-command-line.md +++ b/docs/fsharp/get-started/get-started-command-line.md @@ -64,6 +64,9 @@ let getJson value = Add the `Library` project to the `FSharpSample` solution using the [dotnet sln add](../../core/tools/dotnet-sln.md) command. This command adds the project to the solution file so that the solution can track and build it: +> [!NOTE] +> Run this command from the *FSharpSample* directory. If you changed into a subdirectory while editing the files (for example *src/Library*), change back first (for example, with `cd ../..`). + ```dotnetcli dotnet sln add src/Library/Library.fsproj ``` @@ -126,7 +129,7 @@ The previous command adds the following XML to the App.fsproj file: > [!TIP] > If you skip this step and try to build the App project, you'll get a compilation error because the `Library` module won't be found. If this happens, you can either run the `dotnet add reference` command or manually add the `` element shown above to your App.fsproj file. -Add the `App` project to the `FSharpSample` solution using the `dotnet sln add` command: +Add the `App` project to the `FSharpSample` solution using the `dotnet sln add` command, again from the *FSharpSample* directory: ```dotnetcli dotnet sln add src/App/App.fsproj