Hello,
I’m have a fully working C# script in Windows using Visual Studio interfacing with Opal Kelly XEM7310.
I am aiming to port this script over to a Linux machine. I have downloaded and installed FrontPanel for Ubuntu 22.04. But when I run the script in VS Code, I get the following error messages:
The type or namespace name ‘OpalKelly’ could not be found (are you missing a using directive or an assembly reference?)
The type or namespace name ‘okCFrontPanel’ could not be found (are you missing a using directive or an assembly reference?)
This is what my code implements:
using OpalKelly.FrontPanel;
public okCFrontPanel dev;
dev = new okCFrontPanel();
Looking online, I tried adding a reference to FrontPanel to my .csproj file, but it did not make any difference:
<Reference Include="libokFrontPanel">
<SpecificVersion>False/SpecificVersion>
<HintPath>.\libokFrontPanel.so</HintPath>
</Reference>
</ItemGroup>
It seems that the VS Code environment is not picking up the FrontPanel library files.
Any help would be much appreciated.
Thanks,
-Phil.