从框架4.5类库项目到ASP.NET 5类库引用添加 [英] Add reference to ASP.NET 5 Class Library from Framework 4.5 Class Library Project
本文介绍了从框架4.5类库项目到ASP.NET 5类库引用添加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从普通框架4.5类库项目添加引用ASP.NET 5类库项目。
我做不到。
有一些解决办法,并将这一支持?
我尝试添加依赖关系框架4.5 project.json是这样的:
I want to add reference to ASP.NET 5 Class Library project from regular Framework 4.5 Class Library Project. I cannot do it. Is there some workaround and will this be supported? I have tried to add dependency to framework 4.5 in project.json like this:
"frameworks": {
"net451": {
"dependencies": {
"System.Data.Common": "1.0.0-beta1",
"System.Data.SqlClient": "1.0.0-beta1"
},
"frameworkAssemblies": {
}
},
和在此之后添加参照本ASP.NET 5类库项目,但没有成功。
And after this add reference to this ASP.NET 5 Class Library project but without success.
推荐答案
勾选生成有关生成输出复选框,将复制生成输出到文物\\ BIN \\ [配置] \\ [框架]
文件夹
check the "Produce outputs on build" checkbox will copy build outputs to artifacts\bin\[CONFIGURATION]\[FRAMEWORK]
folder
,那么你可以参考这个DLL
then you can reference this dll
这篇关于从框架4.5类库项目到ASP.NET 5类库引用添加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文