Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Getting started

Brief

  • Create a C# console application in Visual Studio
  • Load the NuGet package
  • Set the platform target to x64
  • 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

Obtain the NuGet package

These are found in the Mako SDK release folder, accessible via your dedicated Global Graphics FTP account.

(Currently these packages are not available from a NuGet-compatible online source. Use the instructions below to use them with Visual Studio.)

To 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

  1. Using your favorite text editor, copy all of the code (ie Ctrl-A, Ctrl-C) from makoconverter.cs in the folder mako-SWIG\swig\csharp\release-win-x64-vc16\app. Also attached on the right for convenience.
  2. Open the source file in your new project, and replace its contents (Ctrl-A, Ctrl-V).

Build

Finally, build the solution (Ctrl-Shift-B). The runtime components (jawsmakoIF_csharp.dll & edlpspdfout.dll) are copied automatically to to the output folder.


Downloads

Download Mako Converter written in C# here:

makoconverter.cs

  • No labels