Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
cannot reference 'mscorlib.dll_1' as the program has already referenced 'mscorlib.dll_2'
Remarks
The compiler is matched to a version of the common language runtime. However, an attempt was made to reference a version of a common language runtime file from a previous version.
To resolve this error, only reference files from the version of the common language runtime that shipped with the version of Visual C++ you are compiling with.
Example
The following example generates 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"