Skip to content

Add guidance on identifying conflicting assemblies in CS0433 compiler error documentation #47379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/csharp/language-reference/compiler-messages/cs0433.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ This error can also occur if:

* The `@ Page` directive has a `CodeFile` attribute when it should be a `CodeBehind` attribute.
* Code is placed in an *App_Code* folder that shouldn't reside there.

## How to identify the conflicting assemblies

The full error message shows which assemblies contain the conflicting type. The message format is:

```
error CS0433: The type 'N.C' exists in both 'A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'B, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
```

In this example, the conflicting assemblies are **A** and **B**. The assembly names appear in single quotes before the version information. Use these assembly names to determine which references are causing the conflict and decide how to resolve it.

## Examples

Expand Down