home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / build_bat_216________.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% /d:BuildBat /out:RBSecDemoSvr.dll /r:System.EnterpriseServices.dll /r:System.Windows.forms.dll  /r:System.dll /r:System.Drawing.dll RBSecObj.cs
  12.  
  13. @ REM compile the sample .NET client application
  14. @ REM this build step generates a windows .exe
  15. csc /target:winexe %DEBUGSAMPLE%  /out:RBSecDemo.exe /r:RBSecDemoSvr.dll /r:System.Windows.forms.dll  /r:System.dll /r:System.Drawing.dll RBSecForm.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 RBSecDemoSvr.dll
  23. gacutil /i RBSecDemoSvr.dll
  24. @echo.
  25. @echo To uninstall the RoleBaseSecurity Sample, run "build -u"
  26. @echo.
  27.  
  28. @goto exit
  29.  
  30. :clean
  31. gacutil /u RBSecDemoSvr,PublicKeyToken=a653dc1bf6570fc2
  32. regsvcs /u RBSecDemoSvr.dll
  33.  
  34. :exit