简体   繁体   中英

Creating .dll subproject in Visual Studio Code editor

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 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM