LEADTOOLS Support
General
General Questions
What does ('Leadtools' could not be found) mean?
#1
Posted
:
Tuesday, October 12, 2021 6:51:51 AM(UTC)
Groups: Registered
Posts: 1
every time i see the error:
Error CS0246 The type or namespace name 'Leadtools' could not be found (are you missing a using directive or an assembly reference?)
Because there is no package with the name "Leadtools"!!!!
#2
Posted
:
Wednesday, October 20, 2021 12:39:26 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 1
Hello Dmytro, please make sure that you have the correct version of the "Leadtools.dll" referenced in your dependencies. To add dependencies via
Nuget, right click "Dependencies" in the Solution Explorer in Visual Studio 2019 and click "Manage Nuget Packages...".
Select "Leadtools.Formats.Raster.Common" from "Browse" and install the package. If your project is .NET Core then Nuget must be used to add dependencies to a project.
To manually add dlls, right click "Dependencies" in the Solution Explorer in Visual Studio 2019 and click "Add Project Reference...". A new window will display, press "Browse" on the left-hand side and then press the "Browse" button on the bottom right corner. Select the appropriate dlls (in your case Leadtools.dll) from the correct directory. SDK files should be stored in "\LEADTOOLS22\Bin\DotNet4\x64" or
"\LEADTOOLS22\Bin\DotNet4\Win32" depending on the CPU architecture being used in Visual Studio 2019.
Another handy way of adding these dependencies is by modifying your .csproj file associated with the project. Add a reference element inside the ItemGroup element to do so.
Please reference the following tutorials for how to add dependencies and setting a license utilizing the first two methods mentioned in this response:
https://www.leadtools.co...s-and-set-a-license.htmlhttps://www.leadtools.co...s-and-set-a-license.htmlSteven Bartkiewicz
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
General
General Questions
What does ('Leadtools' could not be found) mean?
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.