Packages and modules
Before installing PeyrSharp, you may want to consider what features you will actually need to use in your project. Indeed, PeyrSharp is divided in multiple modules and packages.
If you think you need all the features of PeyrSharp, you can directly install the PeyrSharp NuGet package. However, you can also install the packages that you only need in your project. Here's a list of all the packages and their features:
PeyrSharp, the main package, that contains all of the followings:
PeyrSharp.Core, the basic methods and features of C#
PeyrSharp.Env, methods related to the file system and to the current execution environment.
PeyrSharp.Enums, all enumerations used by PeyrSharp
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
PeyrSharp.Extensions, extension methods, that extends basic types, such as
double or arrays (
- Array (
PeyrSharp.UiHelpers, methods related to Windows Forms or to the Windows Presentation Framework (WPF).
Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms.
|Package/Platform||Windows||macOS||Linux + others|
- ✅ Full Support
- ⚠️ Partial Support
- ❌ Unsupported platform
PeyrSharp is available in the following frameworks
- .NET 5
- .NET 6
- .NET 7 (soon)
.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.
PeyrShall is available on NuGet, you can install it by running the following command:
You can add PeyrSharp to your project the .NET CLI.
dotnet add package PeyrSharp --version 184.108.40.2061
NuGet\Install-Package PeyrSharp -Version 220.127.116.111
You can specify in your project file that it is dependent on PeyrSharp.
<PackageReference Include="PeyrSharp" Version="18.104.22.1681" />
To call methods and classes included in PeyrSharp, you will need to add the corresponding using directives in your code file.
using PeyrSharp.Core; using PeyrSharp.Env; using PeyrSharp.Enums; using PeyrSharp.Exceptions; using PeyrSharp.Extensions; using PeyrSharp.UiHelpers; // Windows only
For more information, you can check the reference