c# - .NET 2.0 WebService 在 Xamarin.Forms 默认可移植解决方案中不可用

标签 c# web-services xamarin.ios xamarin xamarin.forms

我在 Xamarin Studio 中创建了一个新项目,完全是一个 Empty Xamarin.Forms Portable 解决方案,但是当我添加 WebReference 时,用于选择 NET framework 2.0 WebServices 的下拉菜单被禁用。因为?

最佳答案

因为 WCF 是 .Net Framework 4 或 4.5 客户端中包含的唯一 WebServices 框架。

Net Framework 2.0 Web 服务需要 Asp.NET,这会使该解决方案无法移植到某些环境,例如 Windows Phone 8。

关于c# - .NET 2.0 WebService 在 Xamarin.Forms 默认可移植解决方案中不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26175068/

相关文章:

java - 发送 HTTP 请求抛出 JAVA 时出现 405 错误

web-services - Axis 自底向上 Web 服务 IWAB0489E 错误

cocoa-touch - iPhone/iPad UIButton TitleLabel 文本未出现

c# - C# app : "Not a legal OleAut date"? 异常的含义

java - 在 GlassFish Server 中找不到 JAX-RS 资源

c# - Ienumerable concat 不适用于每个循环

ios - 有没有办法在 ios 中打开编辑器应用程序并接收编辑后的结果?

ios - 尝试构建 Xamarin.iOS 应用程序时,Visual Studio for Mac 中出现 sgen TypeLoadException

c# - 为什么这个 'Label' 是一个字段?

c# - 您可以在不全局注册的情况下注册 Web API ActionFilter 吗?