Installation vs. NuGet in dotConnect Providers

Installation vs. NuGet in dotConnect Providers

dotConnect providers can be added to a project in two ways: by installing the product or by using NuGet packages. The choice depends on the project type and the .NET version you are targeting.

This article applies to all dotConnect providers.

Two Ways to Get Assemblies

1. Installation

When you install dotConnect, assemblies for .NET Framework are placed locally and registered in the system. You can find them in:
  1. C:\Program Files (x86)\Devart\dotConnect\MySQL\
  2. Global Assembly Cache (GAC 2.0): C:\Windows\assembly\GAC_MSIL\
  3. Global Assembly Cache (GAC 4.0): C:\Windows\Microsoft.NET\assembly\GAC_MSIL\
2. NuGet Packages

Assemblies for .NET Standard and .NET Core (including .NET 6–9) are available via NuGet. This approach integrates easily into cross-platform development and automated build pipelines.

Which Option to Use
  1. For .NET Framework projects, use the assemblies installed with the product.
  2. For .NET Core and .NET 6–9 projects, use NuGet packages.
This separation ensures that the correct assemblies are referenced and that licensing requirements are applied appropriately.

Licensing

Licensing terms differ between the two approaches:

    • Related Articles

    • Using SSL with dotConnect for PostgreSQL from NuGet

      When using dotConnect for PostgreSQL via NuGet packages, note that SSL support is not included in the NuGet assemblies by default. To enable SSL connections, you must manually add the necessary assemblies from the full Devart installation package to ...
    • How to Completely Remove Previous Versions of dotConnect Providers

      Conflicts may occur if older dotConnect versions remain on the system, leading to installation errors or issues in Visual Studio. This article describes how to fully remove previous versions before reinstalling. The instructions apply to all ...
    • Where to Apply the License Key in dotConnect Providers

      License key usage in dotConnect providers varies depending on the target framework. In .NET Framework projects, licensing is managed automatically during installation, whereas .NET Core and later versions require the license key to be provided at ...
    • Installing Multiple Versions of dotConnect Providers on One Machine

      This article describes whether multiple versions of dotConnect providers can coexist on a single system. The information applies to all dotConnect providers. All dotConnect providers rely on a shared core assembly, Devart.Data.dll. Because this ...
    • Updating dotConnect to a New Version

      This article explains the procedure for updating dotConnect to the latest version. The instructions apply to all dotConnect providers. Update Procedure 1. Uninstall the previous version Open Settings → Apps → Installed apps → Uninstall and remove all ...