Add .NET SDK to your project
Add Nutrient .NET SDK (formerly GdPicture.NET) to your .NET project in one of the following ways:
- Recommended: Add a reference to the GdPicture.NET NuGet package.
- Add a reference to the installed GdPicture.NET DLL file.
Adding a reference to the NuGet package
To add a reference to the GdPicture.NET NuGet package, follow the steps below:
- In Visual Studio, create a new project or open the code of your existing application. For more information on creating a new project, see the Microsoft documentation(opens in a new tab). It’s recommended to create a project that runs on .NET 6.0 or newer.
- Select Project > Manage NuGet Packages.
- In the Package source field, select nuget.org.
- Click the Browse tab, and then search for GdPicture.
- Select one of the following options:
- Recommended: If your application runs on .NET 6.0 or newer, select GdPicture.API, and then click Install.
- If your application runs on .NET 4.6.2 or .NET Core 3.1, select GdPicture, and then click Install.
Adding a reference to the DLL file
To add a reference to the GdPicture.NET DLL file, follow the steps below:
- In Visual Studio, create a new project or open the code of your existing application. For more information on creating a new project, see the Microsoft documentation(opens in a new tab). It’s recommended to create a project that runs on .NET 6.0 or newer.
- Select Project > Add Reference.
- Click the .NET Assembly tab.
- Click Browse.
- Select one of the following options:
- Recommended: If your application runs on .NET 6.0 or newer, go to
Redist\GdPicture.NET.API (.NET 6.0)\
within the GdPicture.NET installation folder, and then selectGdPicture.NET.14.API.dll
. - If your application runs on .NET 4.6.2, go to
Redist\GdPicture.NET (.NET Framework 4.5)\
within the GdPicture.NET installation folder, and then selectGdPicture.NET.14.dll
. - If your application runs on .NET Core 3.1, go to
Redist\GdPicture.NET (.NET Core 3.1)\
within the GdPicture.NET installation folder, and then selectGdPicture.NET.14.Core.dll
.
- Recommended: If your application runs on .NET 6.0 or newer, go to
- Click OK.