use*_*516 6 asp.net asp.net-mvc visual-studio asp.net-core-mvc asp.net-core
我在解决方案X中有一个ASP.NET Core 1.0 MVC应用程序,我在解决方案Y中有一些常见项目(.net 4.5.2类库).
我想从我的应用程序中引用解决方案Y中的项目,当我这样做时通过添加引用 - >浏览..我得到:
.NET Core projects only support referencing .NET framework assemblies in
this release. To reference other assemblies,
they need to be included in a NuGet package and reference that package.
Run Code Online (Sandbox Code Playgroud)
然后我创建了这些项目的nuget包,添加了包含nuget包作为repo源的文件夹并加载了项目.这会将项目成功添加到我的project.json中,但实际上"没有"实际发生,我仍然无法在我的应用程序中使用该代码.
现在ASP.NET Core已经过了beta版状态,处理这个问题的官方方式是什么?
| 归档时间: |
|
| 查看次数: |
8261 次 |
| 最近记录: |