Skip to content

Commit d06b9b5

Browse files
CopilotBillWagner
andcommitted
Add obj/bin deletion solution to CS0518 documentation
Co-authored-by: BillWagner <[email protected]>
1 parent cbeab76 commit d06b9b5

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ The main cause for this problem is that the project is not importing mscorlib.dl
3030

3131
- Make sure that the project refers to the correct mscorlib.dll.
3232

33+
- Close Visual Studio, delete the `obj` and `bin` folders from your project directory, then reopen Visual Studio and rebuild the project.
34+
3335
- Reinstall the .NET Framework common language runtime (if the previous solutions do not solve the problem).
3436

3537
Optionally

0 commit comments

Comments
 (0)