OneStream Reference Assemblies

You can download OneStream reference assemblies to integrate IntelliSense capabilities in your IDE. For information on creating a local NuGet repository, see Setting Up Local NuGet Feeds.

NOTE: You must be connected to a server to download OneStream reference assemblies. See Connect to a Server.

Complete these steps to download reference assemblies and configure IntelliSense: 

  1. Navigate to File > Download OneStream Reference Assemblies.

    The File menu is expanded and the cursor hovers over Download OneStream Reference Assemblies

  2. From the Select Version drop-down menu, select a reference assembly version.

  3. Click the Browse The Browse icon is a black foldericon and use File Explorer to select the download location and then click the Download button. The location defaults to your Downloads folder.

  4. When the progress bar is completed, click the Open Folder in File Explorer button to display the NUPKG file's folder location.

  5. Open a terminal window or command prompt and then navigate to the directory containing the item or project you want to add the reference to. In the following example, the reference is added to the DynamicCubeView project.

    The repository points to the c:\nuget directory and is named LocalRepo.

    Enter the following command to set up a local NuGet repository for the reference assemblies:

    Copy
    dotnet nuget add source

    In this example, the repository points to the c:\nuget directory and is named LocalRepo.

    The repository points to the c:\nuget directory and is named LocalRepo.

  6. Enter this command to add the reference assemblies to your project: 

    Copy
    dotnet add package OneStream.Platform.ReferenceAssemblies

    This command must also include the version number listed in the package file name. In this example, the file name lists version 9.2.0, so that version is listed in the command.

    The file name lists version 9.2.0

    Include the version number listed in the package file name. The example lists version 9.2.0

    IMPORTANT: This second command must be entered in each project file.

For more information on adding dotnet packages and local feeds, see Dotnet Package Add and Setting Up Local NuGet Feeds.

IntelliSense functions in your IDE once these commands are entered. This image shows IntelliSense functioning locally in Visual Studio.

An IntelliSense box displays in Visual Studio while typing