Skip to content

Get Started

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#
  • Maths
  • Password
  • Guid
  • Converters
  • Internet
  • Crypt
PeyrSharp.Env, methods related to the file system and to the current execution environment.
  • FileSys
  • Logger
  • System
  • Update
  • UwpApp
PeyrSharp.Enums, all enumerations used by PeyrSharp
  • LogLevel
  • WindowsVersion
  • TimeUnits
  • SystemThemes
  • OperatingSystems
  • StorageUnits
  • ControlAlignment
  • PasswordPresets
  • PasswordStrength
PeyrSharp.Exceptions, all exceptions used by PeyrSharp
  • RGBInvalidValueException
  • HEXInvalidValueException
  • InvalidGuidLengthException
PeyrSharp.Extensions, extension methods, that extends basic types, such as string, int, double or arrays (T[]).
  • Array (T[])
  • Double
  • Int
  • String
PeyrSharp.UiHelpers, methods related to Windows Forms, the Windows Presentation Framework (WPF) or user32.dll.
  • Screen
  • WinForms
  • WindowHelper
  • WindowInfo
  • WPF



Some modules of PeyrSharp are targeting features only available in specific operating systems. Thus, some packages aren't available on all platforms.

Package/PlatformWindowsmacOSLinux + others


  • ✅ Full Support
  • ⚠️ Partial Support
  • ❌ Unsupported platform


PeyrSharp is available in the following frameworks

  • .NET 6
  • .NET 7
  • .NET 8


.NET Framework and .NET Core are not targeted by PeyrSharp, since they are no longer supported.


.NET 5 is no longer supported starting with version and higher.

Installation methods

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

Package Manager

NuGet\Install-Package PeyrSharp -Version

Package Reference

You can specify in your project file that it is dependent on PeyrSharp.

<PackageReference Include="PeyrSharp" Version="" />

Start coding

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

Released under the MIT License.