【问题标题】:How to add reference of class library project in asp net core project如何在asp net core项目中添加类库项目的引用
【发布时间】:2018-03-23 16:08:49
【问题描述】:

我已经创建了 asp net core 项目。 如何在项目中添加类库以及在何处添加对它的引用。

这是所附图片中项目的一瞥

enter image description here

【问题讨论】:

    标签: c# asp.net-core .net-core


    【解决方案1】:

    你可以像这样添加你的类库引用-

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

    看看这是否有帮助。

    【讨论】:

    • 或者您可以右键单击 src 文件夹并选择添加 -> 现有项目,就像所有其他 Visual Studio 版本一样。
    猜你喜欢
    • 2018-01-03
    • 2016-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-11-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多