Building the .NET Examples from the Windows Command Line

Procedure

  1. Ensure that the AS_HOME environment variable is set to the TIBCO ActiveSpaces installation directory.

    For example:

    set AS_HOME=<TIBCO_HOME>\as\<version>
  2. Ensure that your environment has been set up for building with Microsoft Visual Studio.

    For example, on a Windows 7 64-bit machine with Visual Studio 2010, execute the following commands:

    set VCINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC
    "%VCINSTALLDIR%"\vcvarsall.bat x86_amd64
  3. Ensure that AS_HOME/lib/TIBCO.ActiveSpaces.Common.dll has been installed into your Global Assembly Cache (GAC).
    Note: This should have automatically been done during installation, but you can verify it using the following command:

gacutil -l TIBCO.ActiveSpaces.Common
    If TIBCO.ActiveSpaces.Common.dll is not present in your GAC, enter the following:
    cd AS_HOME/lib
    gacutil -i TIBCO.ActiveSpaces.Common.dll
  4. To build the .NET examples, enter:
    cd AS_HOME/examples/dotnet
    build.cmd
    Note: To build the .NET examples for 32-bit when installed on a 64-bit platform, add the following C# compiler command option to the csc commands in build.cmd:

    /platform:x86

    For example,

    csc /r:%AS_HOME%\lib\TIBCO.ActiveSpaces.Common.dll /platform:x86 ASOperations.cs ASExampleBase.cs