10-29-2024 04:00 AM
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?
10-29-2024 04:37 AM
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
10-29-2024 12:33 PM
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.
10-30-2024 07:46 AM - edited 10-30-2024 07:53 AM
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.