NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Building a Test Stand UI with Native Controls using .Net - Example not working

Hi team,

 

I am very very new to NI and C#. Please advice what should I do to make the

 

C:\Users\Public\Documents\National Instruments\TestStand 2019 (64-bit)\Examples\Modifying User Interfaces\Building a TestStand UI with Native Controls\DotNet

 

work in Visual Studio Code

 

Error Message:

Determining projects to restore...
Nothing to do. None of the projects specified contain packages to restore.
C:\Program Files\dotnet\sdk\5.0.101\Microsoft.Common.CurrentVersion.targets(1180,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.5 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks [C:\Users\ngupta\DotNet\TestStand UI with Native Controls.csproj]

 

Version:

.NET SDK

.NET SDK (reflecting any global.json):
Version: 5.0.101
Commit: d05174dc5a

Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\5.0.101\

Host (useful for support):
Version: 5.0.1
Commit: b02e13abab

.NET SDKs installed:
5.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

 

 

Visual Studio Code

Version: 1.52.1 (system setup)
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:34:46.910Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363

0 Kudos
Message 1 of 3
(1,530 Views)

These examples were written for Visual Studio - not Visual Studio Code. Try it with Visual Studio Pro, Enterprise, or Community.

 

Hope this helps!

Trent

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 3
(1,472 Views)

Hi Thanks for replying.

 

Just a quick conclusion. 

 

The setup requires Visual Studio.

 

Do I need any particular plugin or SDK with it?

 

Thanks,

Neha

0 Kudos
Message 3 of 3
(1,449 Views)