Configuring a Basic C# Application in Visual Studio

This topic outlines how to create a C# application with NI-ATE Core using Microsoft Visual Studio.

  1. Create a new .NET Framework 4.5.2 project.
  2. In the Solution Explorer, right-click your project and select Unload Project.
  3. Add the NI-ATE Core reference to the CSPROJ file and save the file.
    <Project …> … 
    	<ItemGroup>
    		<Reference Include="NationalInstruments.AteCore.Fx45" />
    			… 
    	</ItemGroup> 
    	… 
    </Project>
    
  4. In the Solution Explorer, right-click your project and select Reload Project with Dependencies.
  5. View the Reference Properties to see the reference path. The NI-ATE Core DLL loads automatically from the global assembly cache (GAC).
  6. Include the namespace in your cs file: using NationalInstruments.AteCore;
  7. Add a reference to the Newtonsoft driver dependency:
    1. In the Solution Explorer, expand your project to ensure the project contents are visible.
    2. Within your project, right-click on References and select Add Reference.
    3. Select Browse and click the Browse button.
    4. Navigate to C:\Program Files (x86)\National Instruments\NI-ATE Core\Bin.
    5. Select Newtonsoft.Json.dll.
    6. Click Add.
    7. Click OK.

You can now write your remaining logic and build your program.