Paste all the code from makoconverter.cs into the console application, replacing what was there
Build the solution
Create a C# console application
Simply choose from the available .NET Framework templates. This is from VS2019:
Give it a name of your choice.I've called mine MyMakoProject and looks like this in the solution explorer:
Load the NuGet package into the project
The NuGet package you need is served up by TeamCity. If you would prefer to download the package and install it from a local source, refer to the C++ NuGet instructions to find out how. Otherwise, open the package manager by choosing "Manage NuGet Packages" after right-clicking MyMakoProject or References below it.
This enables you to browse for the NuGet package you wish to install. For example:
To install, select a package and click Install.
Set the target platform to x64
The underlying libraries that support the C# interface to Mako are x64 DLLs. This means the default platform target for a managed project, AnyCPU, is not suitable. (You will find that you can build but an exception will be thrown as soon as you run it.)
To solve this, set the Platform target in the project properties to x64, as seen here:
Alternatively, you can add an x64 configuration as described here.
Paste in some code
Using your favourite text editor, copy all of the code (ie Ctrl-A, Ctrl-C) from makoconverter.cs in the swig folder. Also attached on the right for convenience.
Open the source file in your new project, and replace its contents (Ctrl-A, Ctrl-V).
Finally, build the solution (Ctrl-Shift-B). The runtime components (jawsmakoIF_csharp.dll & edlpspdfout.dll) are copied automatically to to the output folder.