Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / msvc / setup-solution.bat
index fb4f3ac7d9b71e7130db89db665b551c170140f6..0674972d9abedf4d522c26beaa848ddd3b3d5fd5 100755 (executable)
@@ -1,8 +1,20 @@
 @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