Prepare Your Microsoft Visual Studio Environment

Before you begin writing the .NET application interface, complete the following steps to prepare your development environment.

Create a Microsoft Visual Studio Project

  1. Open Microsoft® Visual Studio®.

  2. Click File > New > Project.

  3. In the New Project dialog box, select the project type and template you want to use. For example, if you want to create a C# Console Application, select Windows in the Visual C# branch of the Project Type pane. Select the C# Console Application template from the Templates pane.

  4. Type the name of the project in the Name field (MainApp, for example).

  5. Click OK. Your MainApp source shell is created.

Create a Reference to the Client Run-Time Library

Create a reference in your MainApp code to the MATLAB® Production Server™ client run-time library. In Microsoft Visual Studio®, perform the following steps:

  1. In the Solution Explorer pane within Microsoft Visual Studio (usually on the right side), select the name of your project, MainApp, highlighting it.

  2. Right-click MainApp and select Add Reference.

  3. In the Add Reference dialog box, select the Browse tab. Browse to the MATLAB Production Server client runtime, installed at $MPS_INSTALL\client\dotnet. Select Mathworks.MATLAB.ProductionServer.Client.dll.

  4. Click OK. Mathworks.MATLAB.ProductionServer.Client.dll is now referenced by your Microsoft Visual Studio project.

Was this topic helpful?