【问题标题】:System.Runtime.InteropServices.Marshal class in Portable Class Libraries可移植类库中的 System.Runtime.InteropServices.Marshal 类
【发布时间】:2013-07-26 07:34:29
【问题描述】:

我对@9​​87654323@namespace 中的Marshal 类有疑问。 在我的项目图中,我有一个 Windows Phone 8、一个 Windows 应用商店和一个可移植类库项目。 我可以在 Windows Phone 8 和 Windows Store 项目中轻松使用Marshalclass,但在可移植类库中却不行。那里找不到此类。

通过设置,可移植类库支持 .Net 4.5 Framework、Windows Phone OS 8.0 和 Windows Store。

【问题讨论】:

标签: c# .net windows-phone-8 windows-store-apps portable-class-library


【解决方案1】:

除了 .NET FrameworkWindows Store App 之外,您无法访问 Portable Class Library 项目中的 Marshal 类 -由resolution of relevant bug of .NET Framework 中所述的.NET Framework 设计。

在屏幕截图下方添加MS Connect 他们倾向于不时删除缺陷(如here):

【讨论】:

  • 这就是我注意到的。但为什么?这完全不合逻辑。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-12-16
  • 1970-01-01
  • 2012-08-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多