R
R
Reikoni2021-04-24 13:24:56
C++ / C#
Reikoni, 2021-04-24 13:24:56

How to create a C# class library in VSCODE?

Hello everyone, I'm on Linux. I'm starting to learn almost c#. But the question arose how to create a class library in C #, namely VS CODE. Therefore it is necessary to work with the terminal. Someone tell me how to do it? And then at the office. Didn't understand the documentation.
Help)

UPD:
I forgot to add that I know how to create the library itself (dotnet new classlib), but I need to add this library to another console project

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-04-24
@ifullut

write in the
dotnet new classlib console
To add a link to another project - you can use
dotnet add reference
or manually write ProjectReference in csproj
You can also use the "vscode-solution-explorer" plugin, with it you can add links via RMB-Add reference

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question