Skip to content

Commit 16daaa2

Browse files
CopilotBillWagnergewarren
authored
Add guidance on identifying conflicting assemblies in CS0433 compiler error documentation (#47379)
* Initial plan * Add guidance on identifying conflicting assemblies in CS0433 error Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com> * Move "How to identify conflicting assemblies" section after "This error can also occur if" section Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com> Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
1 parent b6000b0 commit 16daaa2

File tree

1 file changed

+10
-0
lines changed
  • docs/csharp/language-reference/compiler-messages

1 file changed

+10
-0
lines changed

docs/csharp/language-reference/compiler-messages/cs0433.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ This error can also occur if:
2020

2121
* The `@ Page` directive has a `CodeFile` attribute when it should be a `CodeBehind` attribute.
2222
* Code is placed in an *App_Code* folder that shouldn't reside there.
23+
24+
## How to identify the conflicting assemblies
25+
26+
The full error message shows which assemblies contain the conflicting type. The message format is:
27+
28+
```
29+
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'
30+
```
31+
32+
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.
2333

2434
## Examples
2535

0 commit comments

Comments
 (0)