Installing the ADO.NET client driver
The ADO.NET client driver requires the following:.
Prerequisites
The ADO.NET client driver requires the following:
-
At least 512MB of memory
-
A supported version of .NET Core or .NET Framework. For details, see the Microsoft documentation:
Installation
For a sample application that uses and demonstrates all of these installation methods, see the client-application-examples repository.
The ADO.NET client driver is available on NuGet and should be installed with a package reference.
To reference the package, add the following to your .csproj
. For an example .csproj
file, see SampleApp.csproj:
<ItemGroup>
<PackageReference Include="Vertica.Data" Version="23.4.0" />
</ItemGroup>
Reference a local NuGet package
You can also download the Vertica.Data
package and reference it locally:
- Download
Vertica.Data.23.4.0.nupkg
from NuGet toproject_directory/packages/Vertica.Data.23.4.0.nupkg
. - Add the following to
nuget.config
to instruct NuGet to get the package from your local directory:<?xml version="1.0" encoding="utf-8" ?> <configuration> <packageSources> <add key="LocalPackages" value="packages" /> </packageSources> </configuration>
- Reference the driver with a standard package reference in your
.csproj
file:<ItemGroup> <PackageReference Include="Vertica.Data" Version="23.4.0" /> </ItemGroup>
Reference a local .dll
You can also download the NuGet package, extract the lib/net40/Vertica.Data.dll
file, and then reference Vertica.Data.dll
:
- Download
Vertica.Data.23.4.0.nupkg
from NuGet.org. - Extract
Vertica.Data.dll
toproject_directory/lib/Vertica.Data.dll
. - Reference
Vertica.Data.dll
in your.csproj
file. For example:
<ItemGroup>
<Reference Include="Vertica.Data">
<HintPath>lib\Vertica.Data.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0" />
</ItemGroup>