Compiling projects without Visual Studio

1 Create bat file in c:\bin\msbuild.bat

C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild %1

@echo off

if errorlevel 1 (
    pause
    exit
)

    pause

2 In notepad++ press F5 and input folowing text (or Run->Run in menu)

C:\bin\msbuild.bat "$(FULL_CURRENT_PATH)"

3 Open sln file, press F5 and enter then


4 Your Code is compiled successfully

It's possible to choose configureation option

msbuild /property:Configuration=Release MyFile.vbproj

Usefull link to stackoverflow http://stackoverflow.com/questions/18286855/how-can-i-compile-and-run-c-sharp-program-without-using-visual-studio


No comments:

Post a Comment