NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to load dependent .NET assembly

I have been spending all day on this issue.

 

Attached minimal reproductable example, I am trying to call following .NET code from TS:

 

using Microsoft.Extensions.Configuration;

namespace TsLoadAssembly
{
    public class Class1
    {

        public Class1(string configPath)
        {
            var config = new ConfigurationBuilder().AddJsonFile(configPath, false).Build();
        }
    }
}

 

It is using the following nugets:

Microsoft.Extensions.Configuration

Microsoft.Extensions.Configuration.Abstractions

Microsoft.Extensions.Configuration.FileExtensions

Microsoft.Extensions.Configuration.Json

 

I have simple sequence file that calls this constructor and the following error is thrown:

 

pawhan11_0-1655901971017.png

 

My guess is that it is somehow related to how teststand discovers dependencies?

 

I have attached code and sequence file.

 

0 Kudos
Message 1 of 1
(635 Views)