Skip to content

License Key Configuration

Geoffrey McGill edited this page Nov 9, 2020 · 3 revisions

License Key Configuration

A Mojee license key can be purchased online at mojee.io/pricing.

A license key is required to unlock all 1743 emojis supported by Mojee. Without a License Key, only the 100 most popular emoji's are supported. See the README for more licensing details.

Once a license key has been purchased, you will be sent an email with a key included. To add the license key to your Mojee project, two easy steps are required:

Step 1 – Set LicenseKey

In your project root, at the same level as the .csproj file, do you have an appsettings.json file? If no, please create that file, then add the following Mojee configuration section. Replace your-license-key-here with your actual license key string.

{
    "Mojee": {
        "LicenseKey": "your-license-key-here"
    }
}

If your project already has an appsettings.json file, the final content might look something like the following:

{
    "Logging": {
        "LogLevel": {
            "Default": "Information",
            "Microsoft": "Warning",
            "Microsoft.Hosting.Lifetime": "Information"
        }
    },
    "AllowedHosts": "*",
    "Mojee": {
        "LicenseKey": "your-license-key-here"
    }
}

Step 2 – CopyToOutputDirectory

Within your projects .csproj file, add the following section inside the <Project> node:

<ItemGroup>
    <None Update="appsettings.json">
        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </None>
</ItemGroup>

The above section instructs the build process to copy the appsettings.json to your /bin folder during compilation. Your appsettings.json file should be deployed along side your projects compiled .dll files.

Mojee is now unlocked and ready for the world.

NOTE: Please protect your license key. Do not commit to a public source code repository or share anywhere outside of your organization. It is your responsibility to protect your license key.