简体   繁体   中英

How to reference Aspnet class library in a project

I have just done an Aspnet class library project using Yeoman aspnet generator.
Now I would like to reference this project from a console one.
I can't find the way to reference the other project (probably only the DLL). I am on Mac with Visual Studio Code... and the terminal

https://www.microsoft.com/net/core#macos

Start by adding the DLL into the references section of the project. In every Visual Studio project there is an expandable feature in the Solution Explorer called References.

Once you have added the DLL as a reference you will then probably need to include it in code by using the using statement at the top of your code:

Using MyClass;

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