Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 11, 2025

The BC2001 error documentation was minimal and didn't address key user concerns about where files are referenced and why the compiler is looking for missing files. Users reported confusion about:

  • Why the compiler is looking for the missing file at all
  • Where the file is referenced in their project
  • What "vbc" means in the File column of error messages
  • How to identify the source when files are intentionally excluded

This update significantly expands the documentation to provide:

Enhanced error context: Explains that the error occurs when the Visual Basic compiler (vbc) cannot find a referenced file, clarifying why "vbc" appears in the File column.

Common causes section: Details the four main ways files can be referenced:

  • Command-line compilation arguments
  • Response files (.rsp files)
  • Project references to assemblies/modules
  • Compiler options like -reference, -addmodule, -keyfile

Comprehensive troubleshooting: Expands the single "check the path" instruction into five specific, actionable steps covering file paths, response files, project references, compiler options, and intentionally excluded files.

Additional resources: Adds links to relevant compiler documentation for response files and reference options, plus Visual Studio project management guidance.

The documentation now directly addresses the scenario mentioned in the issue where files are "excluded from the project intentionally" but still referenced elsewhere, providing clear guidance on how to resolve such conflicts.

Fixes #33861.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Internal previews

📄 File 🔗 Preview link
docs/visual-basic/misc/bc2001.md File <filename> could not be found

@dotnet-policy-service dotnet-policy-service bot added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Sep 11, 2025
@Copilot Copilot AI changed the title [WIP] Where is this error triggered? Improve BC2001 Visual Basic error documentation with comprehensive troubleshooting guidance Sep 11, 2025
Copilot finished work on behalf of BillWagner September 11, 2025 19:11
@Copilot Copilot AI requested a review from BillWagner September 11, 2025 19: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.

After adding suggestions, this is ready.

@BillWagner BillWagner marked this pull request as ready for review September 11, 2025 21:36
@BillWagner BillWagner requested a review from a team as a code owner September 11, 2025 21:36
@BillWagner BillWagner requested a review from gewarren September 11, 2025 21:36
@BillWagner BillWagner enabled auto-merge (squash) September 12, 2025 19:47
@BillWagner BillWagner merged commit 77bca5f into main Sep 12, 2025
10 checks passed
@BillWagner BillWagner deleted the copilot/fix-33861 branch September 12, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-visualbasic/svc errors-warnings/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.

Where is this error triggered?
3 participants