How to install the .NET package Compent.Shared.DependencyInjection.Contract from NuGet by adding a package reference

By Where is my .Net package

.Net
C#
NuGet
Visual Studio
Compent.Shared.DependencyInjection.Contract

In Solution Explorer, edit your project's .csproj file by right-clicking your project> Edit Project File. Add a dependency in your project file using the following syntax.

<ItemGroup>
	<!-- ... -->
	<PackageReference Include="Compent.Shared.DependencyInjection.Contract" Version="0.2.5" />
	<!-- ... -->
</ItemGroup>