When I tried referencing the .exe file of PhantomJS this is the output:
Microsoft (R) Visual C# Compiler version 4.8.3752.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
fatal error CS0009: Metadata file 'c:\Users\vaida\Desktop\PhantomJS\phantomjs.exe' could not be opened -- 'An attempt was made to load a program with an incorrect format. '