Add Assemblies to Visual Studio 2015 ASP.NET 5

ぐ巨炮叔叔 提交于 2019-12-02 00:50:52

you can add the assembly if it available in GAC like below code

 "frameworks": {
    "aspnet50": {
        "frameworkAssemblies": {
            "Stimulsoft.Report": ""
        }
    }
}

in the second part, you can give the version and type of the assembly

Bart Calixto

In your project.json you can do:

"frameworks": {
    "aspnet50": {
        "bin": {
            "assembly": "<path to dll>",
            "pdb": "<path to pdb if needed>"
        }
    }
}

One workaround is to create a class library project with your 3rd party library reference. Then use a project reference from your website to the class library project.

Edit: Use a traditional class library, not an ASP.Net 5 class library.

agua from mars
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!