home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / build_bat_212________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2001-08-21  |  1.3 KB  |  35 lines

  1. @ REM Set command switch for building debug or retail (default is to build debug)
  2. @ REM Type "build.bat -r" to build for retail
  3. @ SET DEBUGSAMPLE=/debug+
  4. @ IF "%1"=="-r" SET DEBUGSAMPLE=/debug-
  5. @ IF "%1"=="-R" SET DEBUGSAMPLE=/debug-
  6. @ IF "%1"=="-u" goto clean
  7. @ IF "%1"=="-U" goto clean
  8.  
  9. @ REM Compile the sample .NET COM+ server object code.
  10. @ REM This build step generates a .dll
  11. csc /target:library %DEBUGSAMPLE% /d:BuildBat /out:OPDemoSvr.dll /r:System.EnterpriseServices.dll /r:System.Windows.forms.dll  /r:system.dll /r:System.Drawing.dll OPObj.cs
  12.  
  13. @ REM compile the sample .NET client application
  14. @ REM this build step generates a windows .exe
  15. csc /target:winexe /out:OPDemo.exe /r:OPDemoSvr.dll /r:System.Windows.forms.dll  /r:System.dll /r:System.Drawing.dll OPForm.cs 
  16.  
  17. @ REM Register, install, and configure the sample COM+ application.
  18. @ REM This build step registers the assembly, creates and registers
  19. @ REM a typelib, and creates and configures a COM+ application 
  20. @ REM according to metadata specified via source code attributes.
  21. @ REM See source code comments and the .NET docs for more info
  22. regsvcs OPDemoSvr.dll
  23. gacutil -i OPDemoSvr.dll
  24.  
  25. @echo.
  26. @echo To uninstall the ObjectPooling Sample, run "build -u"
  27. @echo.
  28.  
  29. @goto exit
  30.  
  31. :clean
  32. gacutil /u OPDemoSvr,PublicKeyToken=548c930b64484f46
  33. regsvcs /u OPDemoSvr.dll
  34.  
  35. :exit