2013-06-20 44 views
2

我有一個任務,我正在重建許多項目丟失的源。對於大多數人來說,這樣做很好,但當然在最後一個項目中,我遇到了一個我找不到任何解決方案的錯誤。將資源文件轉換爲resx - 不可序列化

我用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 error(s)。

回答

5

試試這個:

  1. 在反射
  2. 打開DLL找到您有問題,該程序集的資源文件夾
  3. 上右鍵單擊資源 - >打開方式 - > Visual Studio 2010或2012

這應該在visual studio中打開它作爲resx

相關問題