Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 29, 2025

The CS0518 compiler error documentation was missing a commonly effective solution that many developers rely on when encountering this error. A user reported that none of the existing documented solutions work for them, but closing Visual Studio and deleting the obj and bin folders does resolve the issue.

This change adds the missing solution to the main list of resolution actions:

  • Close Visual Studio, delete the obj and bin folders from your project directory, then reopen Visual Studio and rebuild the project.

This solution addresses build cache corruption issues that can cause CS0518 errors, which is a common scenario not covered by the existing solutions focused on mscorlib.dll references and compiler options.

The addition follows the Microsoft Writing Style Guide with imperative mood instructions and proper code formatting for folder names.

Fixes #27832.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.


Internal previews

📄 File 🔗 Preview link
docs/csharp/language-reference/compiler-messages/cs0518.md Compiler Error CS0518

Copilot AI changed the title [WIP] No help at all Add obj/bin folder deletion solution to CS0518 compiler error documentation Jul 29, 2025
Copilot AI requested a review from BillWagner July 29, 2025 21:11
Copilot finished work on behalf of BillWagner July 29, 2025 21:11
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ready for final review.

@BillWagner BillWagner marked this pull request as ready for review July 30, 2025 18:22
@BillWagner BillWagner requested a review from a team as a code owner July 30, 2025 18:22
@BillWagner BillWagner requested a review from tdykstra July 30, 2025 18:22
@BillWagner BillWagner enabled auto-merge (squash) August 6, 2025 14:00
@dotnet-policy-service dotnet-policy-service bot added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Aug 6, 2025
@BillWagner BillWagner merged commit cc45c64 into main Aug 6, 2025
11 checks passed
@BillWagner BillWagner deleted the copilot/fix-27832 branch August 6, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

csharp-diagnostics/subsvc dotnet-csharp/svc lang-reference/subsvc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No help at all

3 participants