Xamarin
Xamarin - 无法添加对PCL的引用(Xamarin - Unable to add reference to PCL)我是Xamarin的新手,很抱歉,如果这个问题有点无知。
我在VS2015中创建了一个Android项目,为android添加了一个类库,并添加了一个UWP项目。 当我尝试将PCL引用添加到我的UWP时,我收到错误“无法添加对项目foobar.PCL的引用”
当我添加Windows通用类库时,我无法将该引用添加到Android
I'm new to Xamarin, so sorry if this question is a bit ignorant.
I created an Android project in VS2015, added a Class Library for android and added a UWP project. When I try to add the PCL reference to my UWP I get an error 'Unable to add a reference to the project foobar.PCL'
When I add a Windows Universal Class Library I can't add that reference to Android
最满意答案没关系我通过创建一个针对Windows Universal和Android的可移植类库来修复它
Nevermind I fixed it by creating a Portable Class Library that targets Windows Universal and Android