Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command line compiling VB.NET project via Visual Studio?

I am trying to compile my Visual Basic .NET project named Myproject.sln via command line commands. I need to build and compile that solution.

My Visual Basic .NET compiler is called vbc.exe. Any idea how I do that thing?

I am using Visual Studio 2005 , and I have already read Microsoft's tutorial, "Building from the Command Line (Visual Basic)".

like image 402
Night Walker Avatar asked Dec 03 '25 00:12

Night Walker


2 Answers

The .NET framework (version 2 and above) comes with a command line build utility called MSBuild. You can use this to build your Visual Studio project/solution files.

From the command line:

msbuild Myproject.sln
like image 126
Shannon Cornish Avatar answered Dec 05 '25 15:12

Shannon Cornish


Just run MSBuild and specify the .sln file as a command line option:

msbuild myproject.sln /p:buildmode=release
like image 25
Frederik Gheysels Avatar answered Dec 05 '25 13:12

Frederik Gheysels