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.
'symbol' : cannot import symbol from 'assembly2': as 'symbol' has already been imported from another assembly 'assembly1'
Remarks
A symbol was imported from a referenced assembly but that symbol was already imported from another referenced assembly. Either do not reference one of the assemblies or get the symbol name changed in one of the assemblies.
Example
The following example generate C4945.
// C4945a.cs
// compile with: /target:library
// C# source code to create a dll
public class ClassA {
public int i;
}
and then,
// C4945b.cs
// compile with: /target:library
// C# source code to create a dll
public class ClassA {
public int i;
}
and then,
// C4945c.cpp
// compile with: /clr /LD /W1
#using "C4945a.dll"
#using "C4945b.dll" // C4945