Wednesday, January 4, 2012

Setting the Command-Line Compiler for VB.NET in Windows

In order to set the VB.NET compiler for command-line usage you first need to have it installed. You can download the .NET 4.0 framework from here.

You could also get the compiler you installed a Visual Studio version that contains Visual Basic. You can download free of charge the Visual Basic Express Edition from here.

After you installed it, you need to do the following steps:
  1. Go to My Computer -> Right click on Properties -> Advanced Settings
  2. Click on the Environment Variables button. (see Caption 1 for details)
  3. Select the PATH variable from user variables and click on the Properties.
  4. Insert the path to file vbc.exe (you will probably find it in ...\Windows\Microsoft.NET\Framework\<.NETVersion>\vbc.exe) after you put a semicolon in front of it. In the end it will look like ;C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe 
  5. Click OK ( see Caption 2 for details).
  6. Enjoy command-line compiling :)

Caption 1
Caption 2

No comments:

Post a Comment

Got a question regarding something in the article? Leave me a comment and I will get back at you as soon as I can!

Related Posts Plugin for WordPress, Blogger...
Recommended Post Slide Out For Blogger