Skip to content

Commit 386d2f1

Browse files
authored
mention fsproj files as an example of other dotnet reference files
add mention to the fact that cross language project reference can work within valid .NET project files, for example F#
1 parent e1fcc1b commit 386d2f1

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 project (e.g. F#) referenc, works in both ways:
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)