Resolve errors for incorrect or missing assembly references - C# reference (original) (raw)

In addition, the following warnings are covered in this article:

The following errors and warnings indicate that you're missing an assembly reference:

These compiler errors indicate one of these problems in your code:

Type forwarding

These errors indicate an error referencing a type forwarded to a different assembly. To address any of these errors, add a reference to the assembly indicated in the error message.

Duplicate references

The following errors indicate a duplicate assembly reference:

To fix these errors, you must either remove one of the references, or resolve the duplication. Causes for duplication include:

Invalid assembly reference

The following errors indicate that an assembly reference is invalid:

The following warning also indicates an invalid reference assembly:

Check that the assembly name is spelled correctly. The referenced assembly file might be invalid.