I compiled a console program on Tobii Core 2.13.4, Windows 7 x64, NET 4.7.2 and Visual Studio 2015. Compilation, as before, was successful.
When I try to run the application on Windows 7, the program crashed. When I tried to run the program on Windows 8.1, the program correctly showed the serial number, but at second, third and then run the program was closed with error. The error did not disappear even after the reboot. A similar situation occurred when I compiled a Windows Forms application: on Windows 7 program did not start, on Windows 8.1 program started only once (and then every run resulted an error).
Maybe, your code can works on Windows 10 only?