【发布时间】:2013-12-19 07:44:17
【问题描述】:
我正在尝试为 windows 8.1 制作应用程序,并且作为应用程序的一部分,我正在尝试将 libgit2sharp 移植到 windows 8.1 类库(而不是可移植类库)。我已经设法转换了很多小问题,但是项目的很大一部分使用了UnmanagedType.CustomMarshaler 和ICustomMarshaler,由于某种原因似乎不受支持。有没有办法让它工作,或者使用它的方法?
谢谢。
编辑:这里是 github 网址,如果您需要查看:https://github.com/mirhagk/windows8git
【问题讨论】:
-
您在“错误”窗口中遇到的错误是什么?
-
'System.Runtime.InteropServices.UnmanagedType' does not contain a definition for 'CustomMarshaler'和The type or namespace name 'ICustomMarshaler' could not be found (are you missing a using directive or an assembly reference?)是错误。如果您需要查看项目文件或任何内容,我已经修改了我的问题以包含 github url。
标签: c# .net windows-8.1