我没有 .NET 4.5 来解压缩 zip 文件,所以我使用Shell32
的是这样的.NET 4.5 。但是当我像这样引用dll时:
csc.exe /r:"C:\Windows\System32\shell32.dll" ...
我收到此错误:
fatal error CS0009: Metadata file 'c:\Windows\System32\shell32.dll' could not be opened -- 'An attempt was made to load
a program with an incorrect format. '
更新:没有 Visual Studio,只需csc.exe
.