Missing Assembly Reference when Using Measurement Studio in Visual Studio

Updated Aug 13, 2024

Reported In

Software

  • Measurement Studio

Programming Language

  • C# .NET

Issue Details

I would like to create a C# .NET project in Visual Studio to use Measurement Studio libraries for development. However, I am getting the following error with the library name having a red wavy underline:

2024-08-13_12h16_41.png
CS0234: The type or namespace name 'Analysis' does not exist in the namespace 'NationalInstruments' (are you missing an assembly reference?)
2024-08-13_12h08_15.png

How should I resolve this?

Solution

This is caused by the Measurement Studio libraries not being referenced correctly by the project.
Kindly refer to How to Include Measurement Studio Libraries in C#? to have the project referenced to the Measurement Studio libraries correctly.