There are a couple ways that I’ve sorted this out:
- The DotNET.jl package
- Use PowerShell. For example I can call my .Net Managed DLL using the following code:
dllfile = raw"c:\Support.dll" #managed .net dll
cmd = """&{
Add-Type -Path "$dllfile";
\$is_inverted=\$false;
\$sled=[Support.SledType]::Frontal;
\$target=[Support.SystemData.Result]::TargetResult(\$is_inverted, \$sled);
\$target_sample_rate=\$target.dT;
}"""
run(`powershell $cmd`)