被添加参照旧的Web项目可能类库(包)项目 [英] Is add reference to a Class Library(Package) project in old Web project possible
问题描述
我有一个正在运行的WebAPI 2项目,我想升级路径进行调查,以Asp.NET 5.我的升级路线将是:
i have a running WebApi 2 project and i would like to investigate the upgrade path to Asp.NET 5. My upgrade path would be:
- 使用适当的目标框架升级库逐一
- 升级测试
- 升级的WebAPI项目,以新的Asp.NET 5。
我的第一个库转换我无法添加引用到任何项目未使用新的模板!
这是工具?这是可能的呢?
With my first library converted i was unable to add the reference to any project not using the new template! Is this the tooling? Is this possible at all?
推荐答案
您不能(此时)从的csproj引用DNX项目。然而,你可以创建一个使用该项目的NuGet包 DNU包
并引用那些在您的csproj。
You cannot (at this time) reference a DNX project from a csproj. You could however create nuget packages of the project using dnu pack
and reference those in your csproj.
您可以从DNX项目通过VS2015或使用但引用的csproj DNU包装
。
You can however reference a csproj from a DNX project via VS2015 or by using dnu wrap
.
这篇关于被添加参照旧的Web项目可能类库(包)项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!