Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.4 KiB

  1. if not "%_echo%" == "" echo on
  2. setlocal
  3. set ERR=0
  4. echo Prejitting %URTTARGET%\mscorlib.dll
  5. %URTTARGET%\ngen %URTTARGET%\mscorlib.dll
  6. :label_1
  7. if not exist "%URTTARGET%\System.Data.dll" goto label_2
  8. echo Prejitting %URTTARGET%\System.Data.dll ...
  9. %URTTARGET%\ngen.exe /nologo /silent %URTTARGET%\System.Data.dll
  10. if errorlevel 1 (
  11. set ERR=%ERRORLEVEL%
  12. echo Error %ERRORLEVEL% prejitting %URTTARGET%\System.Data.dll
  13. )
  14. :label_2
  15. if not exist "%URTTARGET%\System.Design.dll" goto label_3
  16. echo Prejitting %URTTARGET%\System.Design.dll ...
  17. %URTTARGET%\ngen.exe /nologo /silent %URTTARGET%\System.Design.dll
  18. if errorlevel 1 (
  19. set ERR=%ERRORLEVEL%
  20. echo Error %ERRORLEVEL% prejitting %URTTARGET%\System.Design.dll
  21. )
  22. :label_3
  23. if not exist "%URTTARGET%\System.Drawing.Design.dll" goto label_4
  24. echo Prejitting %URTTARGET%\System.Drawing.Design.dll ...
  25. %URTTARGET%\ngen.exe /nologo /silent %URTTARGET%\System.Drawing.Design.dll
  26. if errorlevel 1 (
  27. set ERR=%ERRORLEVEL%
  28. echo Error %ERRORLEVEL% prejitting %URTTARGET%\System.Drawing.Design.dll
  29. )
  30. :label_4
  31. if not exist "%URTTARGET%\System.Drawing.dll" goto label_5
  32. echo Prejitting %URTTARGET%\System.Drawing.dll ...
  33. %URTTARGET%\ngen.exe /nologo /silent %URTTARGET%\System.Drawing.dll
  34. if errorlevel 1 (
  35. set ERR=%ERRORLEVEL%
  36. echo Error %ERRORLEVEL% prejitting %URTTARGET%\System.Drawing.dll
  37. )
  38. :label_5
  39. if not exist "%URTTARGET%\System.Windows.Forms.dll" goto label_6
  40. echo Prejitting %URTTARGET%\System.Windows.Forms.dll ...
  41. %URTTARGET%\ngen.exe /nologo /silent %URTTARGET%\System.Windows.Forms.dll
  42. if errorlevel 1 (
  43. set ERR=%ERRORLEVEL%
  44. echo Error %ERRORLEVEL% prejitting %URTTARGET%\System.Windows.Forms.dll
  45. )
  46. :label_6
  47. if not exist "%URTTARGET%\System.Xml.dll" goto label_7
  48. echo Prejitting %URTTARGET%\System.Xml.dll ...
  49. %URTTARGET%\ngen.exe /nologo /silent %URTTARGET%\System.Xml.dll
  50. if errorlevel 1 (
  51. set ERR=%ERRORLEVEL%
  52. echo Error %ERRORLEVEL% prejitting %URTTARGET%\System.Xml.dll
  53. )
  54. :label_7
  55. if not exist "%URTTARGET%\System.dll" goto label_8
  56. echo Prejitting %URTTARGET%\System.dll ...
  57. %URTTARGET%\ngen.exe /nologo /silent %URTTARGET%\System.dll
  58. if errorlevel 1 (
  59. set ERR=%ERRORLEVEL%
  60. echo Error %ERRORLEVEL% prejitting %URTTARGET%\System.dll
  61. )
  62. :label_8
  63. if not %ERR% == 0 (
  64. echo Errors prejitting FX binaries
  65. seterror %ERR%
  66. )
  67. endlocal