![]() |
HyperX.Solver.Api 1.23.0
The HyperX Solver Application Programming Interface
|
Make sure you have the .NET 8 SDK installed on your machine.
To build a criterion, you'll need to reference the HyperX Solver API assembly. The assembly is available as a C# nuget package included in the main HyperX install.
Use the following commands to create a new directory and initialize a nuget configuration.
Open the nuget.config file generated by the last command and replace the contents with the following. This makes the .nupkg files shipped with the HyperX installer available to nuget. You may wish to remove the <clear /> commands if you use additional nuget packages.
Install the HyperX packaging tool:
Initialize the package config and create a criterion module. The following commands automatically add a reference to the HyperX Solver API in the generated .csproj file.
Optionally modify the version reference to control the exact API version you are developing against. The nuget package version must be available in your nuget.config file. View the Solver API version of your HyperX install with: Ribbon | Database | Packages | Package Manager | Settings
Optionally add 'extra versions' of the API to compile against. You must also reference these in the module.mains portion of the hxpkg.config file. You can use SOLVER_X_Y_OR_GREATER preprocessor definitions to conditionally enable code depending on which Solver API you are running against.
Optionally modify whether the package should be generated on build.
Build the project.
In the build standard output, you should see a message indicating that the package has been built:
You can install this package in the HyperX Package Manager (Ribbon | Database | Packages | Package Manager) by adding a package source for its directory and installing it.
To further modify this code, use your preferred C# code editor.