3

我有一个任务,我正在重建我们在许多项目中丢失的一些资源。大多数情况下,它都很好,但当然在最后一个项目中,我遇到了一个我找不到任何解决方案的错误。

我使用 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 个错误。

4

1 回答 1

6

尝试这个:

  1. 在 Reflector 中打开 dll
  2. 在该程序集的 Resources 文件夹中找到您遇到问题的资源
  3. 右键单击它 -> 打开方式 -> Visual Studio 2010 或 2012

那应该在visual studio中将它作为resx打开

于 2013-06-21T11:26:54.357 回答