Missing .NET Assemblies in Visual Studio When Building NI TestStand DLL

Updated Oct 31, 2022

Reported In

Software

  • TestStand Semiconductor Module

Issue Details

When building or rebuilding TestStand Semiconductor Module .NET shipping examples with Visual Studio, I get errors "are you missing a using directive or assembly reference?". How can I fix this error?
 
001.png
 
 

Solution

You probably don't set the correct .NET Framework version which the project needs to have for successful execution or the .NET Framework version required for the project is not installed on your machine.

You need to follow the following steps to fix the issue.
  1. Open the project and navigate to Project >> Properties >> Application >> Target framework.
003.png
  1. Select Install other frameworks.
004.png
  1. You can also download the Developer Pack of .NET Framework 4.6.2 from here.
  2. Complete the installation and restart Visual Studio.
  3. Open the project again.
  4. Change the Target framework to .NET Framework 4.6.2 and click Yes when prompted for the change.
005.png
  1. Navigate to Project and expand References, if you see a yellow exclamation mark show on NationalInstruments.TestStand.SemiconductorModule.ApplicationAPI, remove ​this reference.
006.png
  1. Right click References and select Add Reference.
007.png
  1. Add NationalInstruments.TestStand.SemiconductorModule.ApplicationAPI assembly back to the project.
008.png
 
Now you should be able to build or rebuild the project to generate a DLL.
009.png