NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use .NET 8 without GAC?

I'm looking for recommendations on using .NET 8, especially given the absence of the Global Assembly Cache (GAC). In my sequences, I frequently rely on mscorlib.dll, which previously could simply be selected from the GAC list. However, with the latest TestStand update, the GAC has been removed, requiring the DLL to be specified by its path.

 

What would you suggest for configuring the steps with the .NET adapter? Should I add the C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.8 folder to the PATH, or would it be better to add it to the TestStand Search Directories? Or is there another approach you'd recommend?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 4
(627 Views)

Good point! At least for the general Microsft stuff.

 

In the time before .net8 support, I have never used GAC fr my own assemblies, they are lcoated in the approproriate folders within the project / framework hierarchy

 

 

0 Kudos
Message 2 of 4
(615 Views)

I also didn't register my own assemblies in GAC but I often use the standard ones for simple file operations and such. GAC was very handy for it.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 3 of 4
(572 Views)

Create .net project and referenace all libraries teststand might need to use. Best is to create wrappers that exposes simple datatypes to teststand instead of calling core libs directly.

 

In our setup project is compiled to bin directory where sequences reside and dlls are loaded by relative path from that dir. In .net8 all project dependencies will be copied to build output dir.

0 Kudos
Message 4 of 4
(557 Views)