可移植类库中的System.Runtime.InteropServices.Marshal类

时间:2013-07-26 07:34:29

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

Marshal命名空间中的System.Runtime.InteropService类存在问题。 在我的项目地图中,我有一个Windows Phone 8,一个Windows应用商店和一个便携式类库项目。 我可以轻松地使用Windows Phone 8和Windows Store项目中的Marshal类,但不能使用可移植类库中的{{1}}类。这个课程在那里找不到。

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

1 个答案:

答案 0 :(得分:1)

您无法访问可移植类库项目中的Marshal类,并且不支持 .NET Framework Windows Store App - 按resolution of relevant bug of .NET Framework中所述的.NET Framework设计。

MS Connect下面添加了截图,他们不时会删除缺陷(如here): enter image description here