Skip to content

Conversation

@veerasai06
Copy link

@veerasai06 veerasai06 commented Oct 29, 2025

This PR updates the how-to-invoke-the-command-line-compiler.md article to reflect modern .NET build practices.

Changes made:

  • Added a tip note recommending the use of dotnet build for modern .NET projects.
  • Clarified that vbc.exe is only applicable for older .NET Framework projects.
  • Ensured formatting and examples remain consistent with other compiler docs.

Related issue:

Fixes #49457


Internal previews

📄 File 🔗 Preview link
docs/visual-basic/reference/command-line-compiler/how-to-invoke-the-command-line-compiler.md How to Invoke the Command-Line Compiler

@veerasai06 veerasai06 requested review from a team and BillWagner as code owners October 29, 2025 09:16
@dotnetrepoman dotnetrepoman bot added this to the October 2025 milestone Oct 29, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-visualbasic/svc community-contribution Indicates PR is created by someone from the .NET community. labels Oct 29, 2025
@veerasai06
Copy link
Author

@dotnet-policy-service agree

@veerasai06
Copy link
Author

I fixed the broken “Conditional Compilation” link and verified all references.
The doc now correctly includes a link to dotnet build for modern .NET SDK usage.
This PR is ready for review.

@veerasai06
Copy link
Author

Hi @BillWagner, I’ve updated the Visual Basic compiler documentation as requested.
All checks have passed, and the PR includes modern .NET build usage notes.
Kindly review and approve when you get a chance. Thank you!

4. At the command line, type `vbc.exe <sourceFileName>` and then press **Enter**.

For example, if you stored your source code in a directory called `SourceFiles`, you would open the Command Prompt and type `cd SourceFiles` to change to that directory. If the directory contained a source file named `Source.vb`, you could compile it by typing `vbc.exe Source.vb`.
**Tip:** For modern .NET projects, use the `dotnet build` command to compile Visual Basic source files.
Copy link
Member

Choose a reason for hiding this comment

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

I'd like three changes here. First, can you move this toward the top of the file, above line 14. Second, can you add a link to the dotnet build command? It's in core/tools/dotnet-build.md file. Third, there's an extension [!TIP ] that styles this on the learn site. Can you modify this paragraph to use it?

Thanks!

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, @BillWagner! I’ll move the Tip section above line 14, add the link to dotnet build, and update it to use the [!TIP] style as suggested. I’ll push the changes shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-visualbasic/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update VB Build instructions for modern .NET

2 participants