In a VS2017 Xamarin cross platform project, how do I add a web service reference to the library project (NOT the platform projects)?

六月ゝ 毕业季﹏ 提交于 2019-12-25 08:35:16

问题


I've just installed the VS2017 release and started a Xamarin cross platform project (actually 4 of them as you'll see below). I see no way to add a web service reference to the library projects in any of the possible configurations (i.e., forms or native, shared or portable). Am I just missing a new method for doing this or is there some kind of setting I need to change to enable this.

Oddly, I CAN add them to the iOS and Android projects. However, it seems strange and redundant to me to add the exact same thing to both of those projects when, seemingly, it belongs in the library project for the two of them to share.

I've added screen shots of the solution explorer below.


回答1:


Would this answer solve your issue? Manually edit the .csproj, change target profile to "Profile78" then you should see the "Add Service Reference" in the platform project.



来源:https://stackoverflow.com/questions/42705096/in-a-vs2017-xamarin-cross-platform-project-how-do-i-add-a-web-service-reference

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