Add reference to a .NET Core 2.0 DLL on a Full Framework 4.7 project

后端 未结 1 1431
陌清茗
陌清茗 2021-01-11 16:23

I looked for this question in here but I didn\'t find the answer.

I have a Class Library project targeting .NET Core 2.0 and a WPF project targeting .NET Full Framew

相关标签:
1条回答
  • 2021-01-11 16:43

    You cannot add a reference to a .NET Core project to a .NET Framework project.

    To share code between .NET Core and .NET Framework apps / libraries, the shared project must target .NET Standard. If you create a .NET Standard 2.0 project, it can be used in .NET Framework 4.6.1+ projects and .NET Core 2.0+ projects.

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