LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOW TO: Add NuGets & Set License with Xamarin
#1
Posted
:
Thursday, November 16, 2017 4:14:50 PM(UTC)
Groups: Registered
Posts: 119
Was thanked: 4 time(s) in 4 post(s)
With the newest version of the LEADTOOLS SDK, Version 20, there will be NuGet packages that need to be installed into your solution. Once the NuGets have been installed, it will automatically add the DLLs to your references folder. This will allow you to begin coding right away without having to manually reference each DLL to your application. Below you find a step-by-step process on how to add the LEADTOOLS NuGets to your project.
- Open Visual Studio and create a new "Cross Platform App (Xamarin)"
- Select "Shared Project" and click "OK"
- Now in your Solution Explorer, right click your solution and select "Manage NuGet Packages for Solution..."
- Select "Browse" to search for the LEADTOOLS NuGet with the Package Source being "nuget.org"
- Select the NuGet and select the project you want to add it to and click "Install"
- Notice your references now has all the DLLs that were contained within that NuGet
- Drop down MainPage.xaml and select MainPage.xaml.cs and add "using Leadtools;"
- Add the RasterSupport.SetLicense(); call to unlock to the toolkit:
Code:
RasterSupport.Initialize(this);
string licString = "[License]\n" + "License = <doc><ver>2.0</ver><code>PASTE YOUR LICENSE CONTENTS HERE</code></doc>";
string developerKey = "PASTE YOUR DEVELOPER KEY HERE";
byte[] licBytes = System.Text.Encoding.UTF8.GetBytes(licString);
RasterSupport.SetLicense(licBytes, developerKey);
Edited by user Tuesday, February 20, 2018 11:05:27 AM(UTC)
| Reason: Not specified
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
General
LEADTOOLS SDK Examples
HOW TO: Add NuGets & Set License with Xamarin
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.