Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, October 12, 2021 6:51:51 AM(UTC)

Dmytro  
Dmytro

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"!!!!
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Wednesday, October 20, 2021 12:39:26 PM(UTC)
Steven Bartkiewicz

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...".

img1.PNG

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.

img4.PNG

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.

img2.PNG

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.

img3.PNG

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.html
https://www.leadtools.co...s-and-set-a-license.html
Steven Bartkiewicz
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.062 seconds.