home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / build_bat_210________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2001-08-21  |  1.4 KB  |  34 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%  /out:OCDemoSvr.dll /d:BuildBat /r:System.EnterpriseServices.dll /r:System.Windows.forms.dll  /r:system.dll /r:System.Drawing.dll OCObj.cs
  12.  
  13. @ REM Register, install, and configure the sample COM+ application.
  14. @ REM This build step registers the assembly, creates and registers
  15. @ REM a typelib, and creates and configures a COM+ application 
  16. @ REM according to metadata specified via source code attributes.
  17. @ REM See source code comments and the .NET docs for more info
  18. regsvcs OCDemoSvr.dll
  19. gacutil /i OCDemoSvr.dll
  20.  
  21. @ REM compile the sample .NET client application
  22. @ REM this build step generates a windows .exe
  23. csc /target:winexe %DEBUGSAMPLE% /out:OCDemo.exe /r:OCDemoSvr.dll /r:System.EnterpriseServices.dll /r:System.Windows.Forms.dll  /r:System.dll /r:System.Drawing.dll OCForm.cs
  24. @echo.
  25. @echo To uninstall the ObjectConstruction Sample, run "build -u"
  26. @echo.
  27.  
  28. @goto exit
  29.  
  30. :clean
  31. gacutil /u OCDemoSvr,PublicKeyToken=2c2d6807a00d315c
  32. regsvcs /u OCDemoSvr.dll
  33.  
  34. :exit