Skip to main content

.NET IDEs

.NET IDEs

This section provides connection instructions for Microsoft’s Visual Studio and Visual Studio Code, which you can use to develop .NET code that interacts with InterSystems IRIS through the InterSystems Native SDKOpens in a new tab, the ADO.NET Managed Provider for .NETOpens in a new tab, andInterSystems XEPOpens in a new tab.

Visual Studio

To connect Visual Studio to InterSystems IRIS, use the following steps. (Log in to GitHub if necessary.)

First, create the sample solution.

  1. Select View > Team Explorer.

  2. In the Team Explorer – Connect pane, select Local Git Repositories > Clone, copy and paste https://github.com/intersystems/Samples-dotnet-helloworldOpens in a new tab into the URL box, and click Clone.

Next, update the sample code and run it.

  1. Double-click HelloWorld.sln to see the files in the solution, then open helloworld.cs.

  2. Configure the username, password, IP address, and port for your instance (see InterSystems IRIS Connection Information) using the variable declarations,

  3. Press the F5 key to run the program.

  4. A command window displays the message Hello World! You have successfully connected to InterSystems IRIS. Press any key to continue.

Visual Studio Code

With the ObjectScript extension, Visual Studio Code can be used to develop ObjectScript Code on InterSystems IRIS; see ObjectScript IDEs.

To connect Visual Studio Code to InterSystems IRIS, use the following steps. (Log in to GitHub if necessary.)

  1. In your web browser, download or clone https://github.com/intersystems/Samples-dotnet-helloworldOpens in a new tab.

  2. In Visual Studio Code, use File > Open Folder to open the folder you recently downloaded or cloned from GitHub.

  3. Expand samples-dotnet-helloworld and select helloworld.cs.

  4. Configure the username, password, IP address, and port for your instance (see InterSystems IRIS Connection Information) using the variable declarations.

  5. Use View > Terminal to open the terminal and execute the following commands:

    csc /reference:InterSystems.Data.IRISClient.dll helloworld.cs
    .\helloworld.exe
    
  6. The Output pane displays the message Hello World! You have successfully connected to InterSystems IRIS. Press any key to continue.

FeedbackOpens in a new tab