setlocal
echo OFF
call "C:\Program Files\Microsoft Visual Studio .NET Whidbey\Common7\Tools\vsvars32.bat"
csc /target:library /out:bin\FuncProc.dll FuncProc.cs
if ERRORLEVEL 1 goto error

csc /r:System.dll;System.Data.dll;bin\FuncProc.dll /out:bin\PlanView.Limits.Edge.exe PlanView.Limits.Edge.cs
if  ERRORLEVEL 1 goto error

csc /r:System.dll;System.Data.dll;bin\FuncProc.dll /out:bin\Math.Arithmetic.SameAs12.exe Math.Arithmetic.SameAs12.cs
if ERRORLEVEL 1 goto error

csc /r:System.dll;System.Data.dll;bin\FuncProc.dll /out:bin\Math.Arithmetic.MixedOp.exe Math.Arithmetic.MixedOp.cs
if ERRORLEVEL 1 goto error

csc /r:System.dll;System.Data.dll;bin\FuncProc.dll /out:bin\Math.Arithmetic.TimeCompare.exe Math.Arithmetic.TimeCompare.cs
if ERRORLEVEL 1 goto error

csc /r:System.dll;System.Data.dll;bin\FuncProc.dll /out:bin\CompareTo.exe CompareTo.cs
if ERRORLEVEL 1 goto error

goto end
:error
echo Found Error
:end
endlocal

    