引用ASP.NET Core中的现有.NET Framework项目 [英] reference an existing .NET Framework Project in an ASP.NET Core

查看:237
本文介绍了引用ASP.NET Core中的现有.NET Framework项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个现有的项目,该项目带有.NET Framework 4及其业务逻辑层

I have an existing project with .NET framework 4 its a business logic layer

我已经使用核心框架创建了.NET核心应用,并尝试添加现有业务层作为参考,我 尝试使用以下示例:如何在.NET Core项目中引用.NET Framework项目?

I have created .NET core app with core framework and try to add exist business layer as reference and I tried with this example : How do I reference a .NET Framework project in a .NET Core project?

我还使用.net框架创建了核心应用,并尝试添加引用也无法正常工作

I also created core app with .net framework and try to add reference its also not work

请检查下面的图像并给我帮助:)

please check the below images and give me help :)

---------  .net framework 

------ core project 

推荐答案

当您将引用添加到.net Framework核心项目的引用时,您需要单击还原软件包"按钮:)

I got solution when u add the reference to .net framework core project you need to click restore packages button :)

和.net核心框架工作项目无法添加.net框架项目参考

and .net core frame work project can not add the .net framework project reference

这篇关于引用ASP.NET Core中的现有.NET Framework项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆