据我所知,Visual Studio 2015 有一些更新,我们不能再在 asp.net 5 应用程序中添加 DLL,如果我们需要添加,那么 we need to make NuGet package and then install it.
现在我的问题是:-
1) 如果我有一个带有两个类库的项目,那么如何在我的 asp.net 5 应用程序中添加该类库的引用 (DLL)?
2)如果类库也处于开发模式,那么如果该 DLL 通过 NuGet 安装,如何在 asp.net 5 应用程序中更新该 DLL,因为每次在 NuGet 上发布并获取最新版本都需要更多时间。
3) 假设如果我们需要使用 NuGet 添加所有 DLL,那么私有(private) DLL 呢?
4)没有NuGet包管理器有什么办法来处理这个吗?
最佳答案
快速回答 - 您不需要 NuGet 包,是的,可以引用您自己的库。
两种方式:
{
"webroot": "wwwroot",
"version": "1.0.0-*",
"dependencies": {
"Library": "1.0.0-*"
"frameworks": {
"dnx451": {
"dependencies": {
"ClassicLib": "1.0.0-*",
"vNextLib": "1.0.0-*",
}
},
"dnxcore50" : {
"dependencies": {
"vNextLib": "1.0.0-*"
}
}
} ....
我在 Visual Studio 2015 RC 上检查过的所有示例。
关于nuget-package - 如何在 asp.net 5 应用程序中添加项目引用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30666033/