我有一个任务,我正在重建我们在许多项目中丢失的一些资源。大多数情况下,它都很好,但当然在最后一个项目中,我遇到了一个我找不到任何解决方案的错误。
我使用 Reflector 8.1 来反编译 DLL,它为我提供了所有的源文件和一堆 .resources 文件。我一直在使用 resgen 程序将它们转换回 .resx 文件以包含在项目中。一个文件让我很伤心。请帮忙。
>resgen foo.resources foo.resx
Read in 106 resources from "foo.resources"
ResGen : error RG0000: Error while writing the output file "Resources.resx"
ResGen : error RG0000: Specific exception: "InvalidOperationException" Message: "Item named 'IncomingRing' of type 'System.IO.PinnedBufferMemoryStream' cannot
be added to the resource file because it is not serializable."
2 个错误。