[英]How do you reference/import .NET Standard 2.0 types in a .NET Core 2.1 project?
I have a .NET standard 2.0 class library that i keep all my domain classes in (just POCOs no dependencies). 我有一个.NET标准2.0类库,我将所有域类都保留在其中(只是POCO没有依赖性)。
I have a .NET core 2.1 azure functions project also. 我也有一个.NET core 2.1天蓝色功能项目。 In visual studio i added a project reference to the class library, but it doesn't recognize any of my namespaces and classes when I try to reference them.
在Visual Studio中,我向类库添加了项目引用,但是当我尝试引用它们时,它无法识别我的任何名称空间和类。
I just created an azure function , I see nowhere .Net Core 2.1 , currently there are two versions a V1 in .Net Framework and V2 .Net Standard as you can see on the screenshot below, otherwise I find this link that you might be interested in, there are people who have the same problem as you, and they recommend to update to .Net Core 2.2 . 我刚刚创建了一个azure函数 ,我看不到.Net Core 2.1 ,目前在.Net Framework和V2 .Net Standard中有两个版本,如下面的屏幕截图所示,否则,我可能会对此链接感兴趣,有些人和您有同样的问题,因此建议您更新到.Net Core 2.2 。
The link below: 下面的链接:
https://github.com/Azure/azure-functions-templates/issues/829 https://github.com/Azure/azure-functions-templates/issues/829
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.