Skip to content

Commit 24d5bdc

Browse files
authored
mention fsproj files as an example of other dotnet reference files (#44031)
1 parent fb24717 commit 24d5bdc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/core/tools/dotnet-add-reference.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The `dotnet add reference` command provides a convenient option to add project r
2929
<ProjectReference Include="app.csproj" />
3030
<ProjectReference Include="..\lib2\lib2.csproj" />
3131
<ProjectReference Include="..\lib1\lib1.csproj" />
32+
<ProjectReference Include="..\lib3\lib3.fsproj" />
3233
</ItemGroup>
3334
```
3435

@@ -72,6 +73,12 @@ There's no CLI command to add a reference to an assembly that isn't in a project
7273
dotnet add app/app.csproj reference lib/lib.csproj
7374
```
7475

76+
- Add a compatible .NET language (for example, F#) project reference, which works in both directions:
77+
78+
```dotnetcli
79+
dotnet add app/app.csproj reference lib/lib.fsproj
80+
```
81+
7582
- Add multiple project references to the project in the current directory:
7683

7784
```dotnetcli

0 commit comments

Comments
 (0)