-
Couldn't load subscription status.
- Fork 6.1k
Fix #49457 – Update VB build instructions to prefer dotnet build over vbc.exe #49518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@dotnet-policy-service agree |
|
I fixed the broken “Conditional Compilation” link and verified all references. |
|
Hi @BillWagner, I’ve updated the Visual Basic compiler documentation as requested. |
…d-line compiler doc
…d-line compiler doc
| 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. |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
This PR updates the how-to-invoke-the-command-line-compiler.md article to reflect modern .NET build practices.
Changes made:
dotnet buildfor modern .NET projects.vbc.exeis only applicable for older .NET Framework projects.Related issue:
Fixes #49457
Internal previews