简体   繁体   English

为什么ASMX在Xamarin.Forms中特定于平台?

[英]Why ASMX is platform specific in Xamarin.Forms?

I see I need to implement ASMX on each platform I need to consume it: one for Android, one for IoS, one for UWP, and so on. 我看到我需要在需要使用它的每个平台上实现ASMX:一个用于Android,一个用于IoS,一个用于UWP,等等。

It reference to the same model/classes/methods, why I need to replicate it for each platorm? 它引用相同的模型/类/方法,为什么我需要为每个平台复制它? The WSDL is the same. WSDL是相同的。

Can you give to me an example? 你能给我一个例子吗?

Unload your PCL project. 卸载您的PCL项目。 Open it for edit. 打开进行编辑。 Change it to Profile 78, save it and reload. 将其更改为配置文件78,保存并重新加载。 Now you get an option to add Service Reference 现在,您可以选择添加服务参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xamarin.Forms平台特定的代码 - Xamarin.Forms platform specific code Xamarin.Forms Prism中特定于平台的代码 - Platform specific code in Xamarin.Forms Prism 如何从 xamarin.forms 调用特定于平台的页面 - how to call platform specific page from xamarin.forms 将数据从平台特定页面传递到Xamarin.Forms中的PCL - Passing data from platform specific page to PCL in Xamarin.Forms Xamarin.Forms,无法从特定于平台的项目中上课 - Xamarin.Forms, cannot reach class from platform specific projects 在 Xamarin.Forms 中编写特定于设备平台的代码 - Write device platform specific code in Xamarin.Forms Xamarin.forms无法使用Xamarin.Auth和特定的android平台从对象转换为system.type - Xamarin.forms cannot convert from object to system.type with Xamarin.Auth and specific android platform 如何从Xamarin.Forms应用程序修改平台特定的属性? - How do you modify platform specific properties from a Xamarin.Forms application? Xamarin.Forms Prism:特定于平台的服务的Android依赖项注入 - Xamarin.Forms Prism: Android dependency injection of platform-specific service 如何使用 Xamarin.Forms 中的 DependencyService 在共享代码中获取平台特定代码的 static 成员? - How to get static member of platform specific code in shared code using DependencyService in Xamarin.Forms?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM