所以我正在使用Visual Studio 2005
。我需要从过去曾经工作过的.dll文件中生成一个模式,但现在这样做了:
xsd CustomDll.dll /type: CustomClass
我总是遇到恼人的错误:
Error: There was an error processing 'CustomDll.dll'
- Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
我试着在互联网上搜索,但我发现的任何东西都没有帮助我。
我甚至不知道究竟要搜索什么问题?造成这种情况的可能原因是什么?有没有办法在LoaderExceptions
中检索VS2005
属性?
任何答案都会有所帮助。
编辑:
我使用的是Fusion Logs,这是我从其中一个日志文件中获取的(其余的都是成功的):
*** Assembly Binder Log Entry (10/1/2015 @ 5:30:56 PM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
Running under executable C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\bin\xsd.exe
--- A detailed error log follows.
LOG: Start binding of native image xsd, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
LOG: IL assembly loaded from C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\bin\xsd.exe.
WRN: No matching native image found.
LOG: Bind to native image assembly did not succeed. Use IL image.
知道这意味着什么吗?