Source code of Windows XP (NT5)
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.

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