简体   繁体   中英

How to add a reference to a .Net Core 3.1 project from a .Net standard 2.0?

I have two projects, one which has a target framework.Net Core 3.1 called Common, and another which has a target framework.Net standard 2.0 called XamApp. How do I add a reference in XamApp to Common? I keep getting the error:

Project Common is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299)/win10-arm. Project Common supports: netcoreapp3.1 (.NETCoreApp,Version=v3.1)

I'm making a Xamarin.Forms app, so XamApp supports only.Net Standard 2.0. What target framework do I need to change Common to be?

If you don't need features of 2.1, then yes, to netstandard2.0:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM