应用程序部署错误:部署优化失败,错误为“方法超出最大大小限制".请拆分您的方法." [英] App deployment error: Deployment Optmization failed with error “Method (s) exceeded the maximum size limit”. Please split your method(s).”

查看:105
本文介绍了应用程序部署错误:部署优化失败,错误为“方法超出最大大小限制".请拆分您的方法."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

在尝试调试我的应用程序时,出现此错误:

部署优化失败,原因是:错误方法超出最大大小限制".请拆分您的方法."

我正在使用从正常的.NET框架移植到Windows Phone的库.该应用程序可以在模拟器上正常运行.部署也因部署工具的错误而失败.

有人知道我该如何摆脱它.

-Waqas

解决方案

  • 部署到模拟器会导致将托管库编译到X86中.
  • 部署到设备会导致将托管库编译到ARM中.

无论如何,如果您设法达到将其部署到Marketplace的目的(可能会被拒绝),则可能不支持将库从普通.NET导入Windows Phone.

从理论上讲,可移植类库(PCL)可以工作,但实际上并非总是如此,这也许是因为很难编写出可在许多平台上真正兼容的PCL.

希望这会有所帮助,
标记


Hello,

While trying to debug my app i m getting this error:

Deployment Optimization failed with  error "Method (s) exceeded the maximum size limit". Please split your method(s)."

I am using a library which I ported to windows phone from normal .NET framework. The app works fine on emulator. Deployment also fails with same error with deployment tool.

Does anybody has an idea how I can get rid of this.

-Waqas

解决方案

Hi,

  • Deployment to the emulator results in the managed library being compiled into X86.
  • Deployment to a device results in the managed library being compiled into ARM. 

In any event, importing a library from normal .NET to Windows Phone is likely not supported, should you manage to get to the point of deploying to Marketplace (it may get rejected).

In theory portable class libraries (PCLs) may work, but in practice this isn't always true, perhaps because it is hard to write a PCL that is truly compatible across many platforms.

Hope this helps,
Mark


这篇关于应用程序部署错误:部署优化失败,错误为“方法超出最大大小限制".请拆分您的方法."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆