Xamarin forms with .netStandard 2.0, can't reference Core

喜欢而已 提交于 2020-01-25 03:50:27

问题


I can't reference my Interfaces from my .Core project to my Android Project and I don't understand why...

I created a new solution with Visual Studio 2017 in Xamarin.Forms with .Net Standard lib.

And this is what I tried:

With the old .NetFramework Core project method, it worked perfecly, but not now...

Thanks for your help


回答1:


Ok i understand what you mean now, and i have experienced this before

  1. Make sure your .Net Standard project compiles
  2. Remove and Add the .Net Standard reference back to your Andriod projects

Also try deleting all you bin and object directories for all your projects and restart visual studio and compile again

Xamarin can be very fickle, it will work but you need to make sure it doesn't get confused in the process



来源:https://stackoverflow.com/questions/50787384/xamarin-forms-with-netstandard-2-0-cant-reference-core

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!