Skip to content

Commit b152377

Browse files
committed
Better instructions for finding lsl.dll when using VS2019
1 parent 13adb63 commit b152377

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
##
44
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
55

6+
Backup/
7+
UpgradeLog.htm
8+
69
# User-specific files
710
*.rsuser
811
*.suo

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
The is the C# interface to the lab streaming layer. To use it, you need to include the file LSL.cs in your project, and make sure that the appropriate lsl library (e.g. lsl.dll) is findable (e.g., in your application's root directory or in a system path).
44

5+
If using Visual Studio 2019, make sure you have the .NET desktop development pack installed. Then open the liblsl.sln file. If you are asked to upgrade then go ahead. In the solution explorer, right click on the `liblsl` target and choose `Add > Existing Item ...`. In the explorer window, change the `Add` dropdown button to `Add as Link` and change the file types/extensions to "all files (*.*)". Browse to where you have lsl.dll ([download from here](https://github.com/sccn/liblsl/releases)) and select it. Click on the lsl.dll entry now in the solution explorer to view its properties. Set "Build Action" to "Content" and "Copy to output directory" to "Copy if newer". Whenever a target in the solution is built, the dll will be copied into the build directory.
6+
![Visual Studio lsl.dll properties](img/vs2019_lsl_props.PNG)
7+
58
If LSL.cs fails to find the lsl shared library for your target platform, edit LSL.cs and update the following line with the library filename for your system: `const string libname = "lsl";`
69

710
# C# Example Programs

img/vs2019_lsl_props.PNG

13 KB
Loading

0 commit comments

Comments
 (0)