.NET

.NET developers have the following two different options to build a .NET application.

MS Visual Studio users

If you are a MS Visual Studio IDE developer, you need to add the reference to the Sparksee .NET library (sparkseenet.dll) in your project and set build platform to the appropiate specific platfrom (x64 or x86). Please, check that in the “Configuration Manager” from the “BUILD” menu of Visual Studio, the “Platform” selected for the build is NOT “Any CPU”. If it’s “Any CPU”, you must select “New” to set a “x86” or “x64” build target.

Figure 12: .Net compilation - setting the platform
Figure 12: .Net compilation - setting the platform

Since all the other libraries included in the package are native libraries that will be loaded at runtime, they must be available too. And the MS Visual C runtime must be installed on all the computers running your application.

Figure 13: .Net compilation - adding reference
Figure 13: .Net compilation - adding reference

The best option is to copy all the other “.dll” files into the same directory where your application executable file will be.

Using the development environment, this can be done using the option Add existing Item, choosing to see Executable files and selecting the other three native libraries (sparksee.dll, sparkseenetwarp.dll and stlport.dll).

Figure 14: .Net compilation - adding existing item
Figure 14: .Net compilation - adding existing item

Next you must select the three libraries in the Solution Explorer window and set the property Copy to Output as Copy Always for all three native libraries.

Figure 15: .Net compilation - copy to output
Figure 15: .Net compilation - copy to output

Instead of copying the native libraries to the application target directory, an alternative would be to put all the native “.dll” files into your Windows system folder (System32 or SysWOW64 depending on your Windows version).

Now you are ready to build and run the application like any Visual Studio project.

Command-line users

If you just want to quickly test the HelloSparksee sample application, you can use the command line. First setup your compiler environment with the vsvars32.bat file ( or vcvarsall.bat) if you are using a 32 bit MS Visual Studio.

> call "C:\Program Files\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat"

or with the vcvarsall.bat file with the appropiate argument if you are using a 64 bit MS Visual Studio.

> call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64

Then compile and run the application (assuming all the libraries have already been copied to the same directory):

> csc /out:HelloSparksee.exe /r:sparkseenet.dll HelloSparksee.cs
> HelloSparksee.exe
Back to Index