简体   繁体   中英

How to add reference of class library project in asp net core project

I have created asp net core project. How can I add a class library in the project and where to add the reference to it.

Here is a glimpse of the project in the pic attached

enter image description here

You can add your class library reference like this-

"frameworks": {
    "net461": {
    "dependencies": {
    "ClassLibrary1": {
        "target": "project"
        }
     }
   }
}

See if this helps.

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