-
Download and install Visual Studio (in the current example the Visual Studio 2022 version is the one used):
-
Open a terminal window in the current root folder (
...\c-sharp-sample
): -
Execute the
"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc.exe" -reference:XX-bit/plux.dll PROGRAM.cs -out:"XX-bit/Program.exe"
command.
NOTE
- The "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Roslyn\csc.exe" path to the csc.exe executable may vary in accordance to the Visual Studio version being used;
- The XX-bit folder can be 32-bit or 64-bit in accordance with the operating system architecture;
- PROGRAM.cs should be replaced by the name of the program to be built. Taking into consideration the content of the root folder the Program.cs | Program_biosignalsPluxPro.cs | Program_fnirsExplorer.cs are three valid values.
- In the same terminal window, run the Program.exe file generated during the build by providing your Device MAC-Address as an input parameter and defining the log file:
"XX-bit/Program.exe" BTH58:8E:81:A2:41:A6 > "log.txt"
- When the output is intended to be directly printed into the terminal, the
> "log.txt"
instructions can be removed from the command aforementioned in Step 4.