Creating .dll subproject in Visual Studio Code editor

10,408

Create folders for both the main .exe project and for the .dll subproject. .dll subproject folder should not be inside the main project folder.

Then in the main project folder run

dotnet add . reference ../xyz/xyz.csproj

where xyz is the name of the .dll subproject.

After this building the main project automatically builds the subproject too. Exactly what I need.

Share:
10,408
porton
Author by

porton

I am a man with passion of IT and mathematics since childhood and an experienced programmer. My favorite programming languages are D and Ada, but I am quite well with Python, C#, PHP, Java, etc., too. I am a long time experienced Linux user.

Updated on June 27, 2022

Comments

  • porton
    porton almost 2 years

    I am going to create a .dll and an .exe using this .dll with C# and .NET.

    How to create a .dll subproject in Visual Studio Code editor?

    I develop on Debian Linux.