@echo off\r
csc -debug -out:scripts\monowrap.exe scripts\monowrap.cs \r
-csc -debug -out:scripts\genproj.exe scripts\genproj.cs\r
+if errorlevel 1 goto error\r
+csc -nowarn:414 -debug -out:scripts\genproj.exe scripts\genproj.cs\r
+if errorlevel 1 goto error\r
+csc -debug -out:scripts\prepare.exe scripts\prepare.cs\r
+if errorlevel 1 goto error\r
cd scripts\r
+prepare.exe ..\\..\\..\\mcs core \r
+if errorlevel 1 goto error\r
genproj.exe\r
+if errorlevel 1 goto error\r
cd ..\r
-echo Setup complete, you can now use build the solution\r
+echo Setup complete, you need at least a mcs\class\lib\basic directory with\r
+echo mcs.exe mscorlib.dll System.dll System.Xml.dll\r
+echo to bootstrap\r
+goto end\r
+: error\r
+echo Error: solution is not configured.\r
+:end
\ No newline at end of file