Install AWSSDK packages with NuGet
NuGet
NuGet always has the most recent versions of the AWSSDK packages, as well as previous versions. NuGet is aware of dependencies between packages and installs all required packages automatically.
Warning
The list of NuGet packages might include one named simply "AWSSDK" (with no appended identifier). Do NOT install this NuGet package; it is legacy and should not be used for new projects.
Packages installed with NuGet are stored with your project instead of in a central location. This
enables you to install assembly versions specific to a given application without creating compatibility
issues for other applications. For more information about NuGet, see the NuGet documentation
Note
If you can't or aren't allowed to download and install NuGet packages on a per-project basis, you can obtain the AWSSDK assemblies and store them locally (or on premises).
If this applies to you and you haven't already obtained the AWSSDK assemblies, see Obtaining AWSSDK assemblies. To learn how to use the locally stored assemblies, see Install AWSSDK assemblies without NuGet.
Using NuGet from the Command prompt or terminal
-
Go to the AWSSDK packages on NuGet
and determine which packages you need in your project; for example, AWSSDK.S3 . -
Copy the .NET CLI command from that package's webpage, as shown in the following example.
dotnet add package AWSSDK.S3 --version 3.3.110.19
-
In your project's directory, run that .NET CLI command. NuGet also installs any dependencies, such as AWSSDK.Core
.
Note
If you want only the latest version of a NuGet package, you can exclude version information from the command, as shown in the following example.
dotnet add package AWSSDK.S3
Using NuGet from Visual Studio Solution Explorer
-
In Solution Explorer, right-click your project, and then choose Manage NuGet Packages from the context menu.
-
In the left pane of the NuGet Package Manager, choose Browse. You can then use the search box to search for the package you want to install. NuGet also installs any dependencies, such as AWSSDK.Core
. The following figure shows installation of the AWSSDK.S3 package.
Using NuGet from the Package Manager Console
In Visual Studio, choose Tools, NuGet Package Manager, Package Manager Console.
You can install the AWSSDK packages you want from the Package Manager Console by using the Install-Package
command. For example, to install AWSSDK.S3
PM> Install-Package AWSSDK.S3
NuGet also installs any dependencies, such as AWSSDK.Core
If you need to install an earlier version of a package, use the -Version
option and
specify the package version you want, as shown in the following example.
PM> Install-Package AWSSDK.S3 -Version 3.3.106.6
For more information about Package Manager Console commands, see the PowerShell
reference