[runtime] Fix DISABLE_REFLECTION_EMIT build.
[mono.git] / msvc / setup-solution.bat
index e9f0ff0c80520868601b26a2799ab0985e90cf4f..0674972d9abedf4d522c26beaa848ddd3b3d5fd5 100755 (executable)
@@ -1,24 +1,20 @@
 @echo off\r
-mkdir scripts\net_1_1_bootstrap > nul 2> nul\r
-mkdir scripts\net_1_1 > nul 2> nul\r
-mkdir scripts\net_2_0 > nul 2> nul\r
-mkdir scripts\net_2_1 > nul 2> nul\r
-\r
 csc -debug -out:scripts\monowrap.exe scripts\monowrap.cs \r
-copy scripts\monowrap.exe scripts\net_1_1_bootstrap\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_1_1_bootstrap\csc.pdb\r
-\r
-copy scripts\monowrap.exe scripts\net_1_1\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_1_1\csc.pdb\r
-\r
-copy scripts\monowrap.exe scripts\net_2_0\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_2_0\csc.pdb\r
-\r
-copy scripts\monowrap.exe scripts\net_2_1\csc.exe\r
-copy scripts\monowrap.pdb scripts\net_2_1\csc.pdb\r
-\r
-echo Setup complete, you can now use build the solution\r
-\r
-csc -r:System.Xml.Linq -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
-genproj.exe
\ No newline at end of file
+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 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