共用方式為


嚴重錯誤 C1197

無法參考 'mscorlib.dll_1',因為程序已經參考 'mscorlib.dll_2'

備註

編譯程式會比對 Common Language Runtime 的版本。 不過,嘗試從舊版參考 Common Language Runtime 檔案的版本。

若要解決此錯誤,請只參考您編譯之 Visual C++版本隨附之 Common Language Runtime 版本的參考檔案。

範例

下列範例會產生 C1197:

// C1197.cpp
// compile with: /clr /c
// processor: x86
#using "C:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll"   // C1197
// try the following line instead
// #using "mscorlib.dll"