Skip to content

Building OGDI with Visual Studio

openlab edited this page Jan 11, 2012 · 6 revisions

Building and Packaging OGDI with Visual Studio

These instructions are included to encourage you to customize or extend the OGDI Project. There isn't much difference between Building and Packaging OGDI via Visual Studio from Building or Packaging OGDI using PowerShell, this is simply an alternative depending on your personal comfort level with either tool.

Opening the OGDI Solution

  1. Open Visual Studio
  2. Click on File, Hover over Open, Select Project/Solution... (or use the shortcut: Ctrl + Shift + O)
  3. Use the address bar to navigate to %OGDI_ROOT%
  4. Select Ogdi.sln
  5. Click Open

Once the Solution has been opened, the Solution Explorer window should be open containing the structure of the Solution. If the Solution Explorer window does not open, it can be opened with the shortcut Ctrl + Alt + L

Building the Data Service

The Data Service is used to interact with the various Windows Azure Storage containers configured in an instance of OGDI.

### Building the Data Service

Building the Data Service before packaging will give you some context around if the package is ready for the Cloud. Be sure to check the Error List window (Ctrl + , E) in Visual Studio for missing assembly references before proceeding to the packaging step.

From the Solution Explorer window in Visual Studio 2010:

  1. Expand the DataService solution folder.

  2. Right-Click on the Services cloud project.

  3. Select Build from the context menu.

    Building the Data Service Cloud Project

### Packaging the Data Service

In order to deploy OGDI to Windows Azure, the projects must be packaged up into a Cloud Service Package (cspkg).

This section will only cover creating the deployment package, once you have created the deployment package read how to Deploy to Windows Azure.

  1. Right-Click on the Services cloud project.

  2. Select Package...

    Package Data Service into a Deployable Cloud Service Package

  3. Select the appropriate Build and Service Configurations.

    Selecting Build & Service Configurations

  4. Click Package. This will package the deployment and open Windows Explorer to the location of the packaged files.

    Packaged Data Service files in Windows Explorer

Building the Data Browser

The Data Browser is the website in which all of the Data is displayed to a individual.

### Building the Data Browser

Building the Data Browser before packaging will give you some context around if the package is ready for the Cloud. Be sure to check the Error List window (Ctrl + , E) in Visual Studio for missing assembly references before proceeding to the packaging step.

From the Solution Explorer window in Visual Studio 2010:

  1. Expand the InteractiveSDK solution folder.

  2. Right-Click on the InteractiveSDK cloud project.

  3. Select Build from the context menu.

    Building the InteractiveSDK Cloud Project

### Packaging the Data Browser

In order to deploy OGDI to Windows Azure, the projects must be packaged up into a Cloud Service Package (cspkg).

This section will only cover creating the deployment package, once you have created the deployment package read how to Deploy to Windows Azure.

  1. Right-Click on the InteractiveSDK cloud project.

  2. Select Package...

    Package Data Service into a Deployable Cloud Service Package

  3. Select the appropriate Build and Service Configurations.

    Selecting Build & Service Configurations

  4. Click Package. This will package the deployment and open Windows Explorer to the location of the packaged files.

    Packaged Data Browser files in Windows Explorer