Compatibility between dotnetcore and framework 4.5

前端 未结 1 1555
一向
一向 2021-01-22 00:56

I\'m adding a new dotnetcore (RC2) project to my existing solution which contains a set of dotnet framewotk 4.5 projects.

When I try to add a reference in my brand new d

相关标签:
1条回答
  • 2021-01-22 01:18

    Replace your library's project file with a new Class Library (Portable) project (PCL). Once there, you can target a PCL profile or the new Net Standard

    You can also have 2 separated project files, building the same source files, but each one targeting a different frameworks/target (one for PCL, one for .NET fw).

    Here you have a step-by-step: https://oren.codes/2016/06/23/portable-is-dead-long-live-netstandard/

    0 讨论(0)
提交回复
热议问题