Installation
This page will guide you through the process of installing Ducky in your .NET applications. Follow the steps below to get started quickly and easily.
Prerequisites
Before you install Ducky, ensure that you have the following prerequisites:
Prerequisites
.NET SDK: Ducky requires .NET SDK version 9.0 or later. You can download and install the .NET SDK from the official .NET website.
dotnet --versionThis command should return a version number of 9.0 or later.
Integrated Development Environment (IDE): While you can use any text editor to develop .NET applications, we recommend using an IDE like Visual Studio, Visual Studio Code, or Rider for a better development experience.
Installing via NuGet
Ducky is available as a NuGet package. You can install it using the NuGet Package Manager in Visual Studio, the .NET CLI, or the Package Manager Console.
Using the .NET CLI
Open a terminal or command prompt.
Navigate to your project directory.
Run the following command to install Ducky:
dotnet add package Ducky dotnet add package Ducky.Blazor dotnet add package Ducky.Generator
Using the Package Manager Console
Open your solution in Visual Studio.
Go to Tools > NuGet Package Manager > Package Manager Console.
Run the following command in the Package Manager Console:
Install-Package Ducky Install-Package Ducky.Blazor Install-Package Ducky.Generator
Using the NuGet Package Manager in Visual Studio
Open your solution in Visual Studio.
Right-click on your project in the Solution Explorer and select Manage NuGet Packages.
In the NuGet Package Manager, search for "Ducky".
Select the Ducky packages from the list and click Install.
Verifying the Installation
To verify that Ducky is installed correctly, you can check your project's dependencies:
Open your project file (e.g.,
.csproj
).Ensure that there is a reference to Ducky:
<ItemGroup> <PackageReference Include="Ducky" Version="1.0.0" /> <PackageReference Include="Ducky.Blazor" Version="1.0.0" /> <PackageReference Include="Ducky.Generator" Version="1.0.0" /> </ItemGroup>
Once you have completed these steps, Ducky should be installed and ready to use in your project. You can now start integrating Ducky into your .NET applications to manage state effectively.