2

I am developing a console application in C# which requires some dll file to be referenced in Visual Studio Code(not Visual Studio!). There is no such option in menu I guess and I even tried Nuget package manager, but it does not worked for me. I cannot find any tutorial regarding this. Any experienced user?

Farhad Mammadli
  • 469
  • 1
  • 5
  • 15

1 Answers1

4

You can use dotnet-add reference CLI command which provides a convenient option to add project references to a project.

Example: Add a project reference:

dotnet add app/app.csproj reference lib/lib.csproj

For more information, refer this.

Sanket
  • 19,295
  • 10
  • 71
  • 82