GPSoftware.core
3.5.0.1
See the version list below for details.
dotnet add package GPSoftware.core --version 3.5.0.1
NuGet\Install-Package GPSoftware.core -Version 3.5.0.1
<PackageReference Include="GPSoftware.core" Version="3.5.0.1" />
<PackageVersion Include="GPSoftware.core" Version="3.5.0.1" />
<PackageReference Include="GPSoftware.core" />
paket add GPSoftware.core --version 3.5.0.1
#r "nuget: GPSoftware.core, 3.5.0.1"
#:package GPSoftware.core@3.5.0.1
#addin nuget:?package=GPSoftware.core&version=3.5.0.1
#tool nuget:?package=GPSoftware.core&version=3.5.0.1
GPSoftware.Core
A lightweight, versatile, high-performance .NET library providing essential utilities and extension methods.
Built with cross-compatibility in mind, it supports modern .NET runtimes (fully optimized for .NET 10) while remaining fully functional for legacy systems.
Key Features
- 🌍 Localization & Finance: Advanced
Currencymanagement with culture-aware formatting. - ✅ Validation: Specialized attributes for international Social Security Numbers (IT, CH, AT, FR).
- 📅 Date & Time: Modern extensions for
DateOnlyandDateTime(optimized for .NET 6+). - 🛠 Utility Extensions: Optimized methods for string manipulation, collection handling, and data processing.
🛠 Compatibility & Support
The library targets .NET 10 and .NET Standard 2.0, ensuring it can be used across the entire .NET ecosystem:
- Modern .NET: Fully optimized for .NET 10.0 (LTS), .NET 8.0, and .NET 6.0.
- Legacy .NET Framework: Compatible with .NET Framework 4.6.2 and above via .NET Standard 2.0.
- Cross-Platform: Works seamlessly on Windows, Linux, and macOS.
While the library is compatible with .NET Standard 2.0, some specific features (like DateOnly extensions) are optimized for the runtimes that natively support them.
Quick Examples
using GPSoftware.Core.Extensions;
// --- Culture-aware Currency (v3.4.0 feature)
var price = new Currency(1250.50m);
string formatted = price.ToString(new CultureInfo("it-IT")); // "1.250,50 €"
// --- International SSN Validation
[SocialSecurityNumber(Country.Italy)]
public string MyTaxCode { get; set; }
// --- International SSN Validation
string ssnCode = "CRTGPR68H21G839X";
bool isValid = SocialSecurityValidator.Validate(ssnCode, Country.Italy);
if (!isValid)
{
throw new Exception("Invalid Italian Fiscal code");
}
// --- Quickly check strings for multiple conditions
string? myData = " ";
if (myData.IsNotNullOrWhiteSpace())
{
// Do something
}
// --- Fluent conversions with fallback values
string input = "123";
int result = input.ToInt(defaultValue: 0);
// --- Slug generation for URLs
string title = "Hello World! This is a Test";
string slug = title.ToSlug(); // "hello-world-this-is-a-test"
// --- Collection & Mapping Helpers
var items = new List<string> { "A", "B", "C" };
var item = items.GetElementAtOrDefault(5); // Returns null instead of throwing exception
var batches = items.Chunk(2); // Splitting into smaller chunks of 2
How to install
Install the package from NuGet or from the Package Manager Console :
PM> Install-Package GPSoftware.Core
Disclaimer
This library has been developed initialy for a personal project of mine which suits my use case. It provides a simple way to do useful software development stuff.
We do not take responsability if you use/deploy this in a production environment.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.Options (>= 10.0.7)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net10.0
- Microsoft.Extensions.Options (>= 10.0.7)
-
net6.0
- Microsoft.Extensions.Options (>= 10.0.7)
-
net8.0
- Microsoft.Extensions.Options (>= 10.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.6.0 | 87 | 5/16/2026 |
| 3.5.0.1 | 94 | 5/2/2026 |
| 3.5.0 | 108 | 4/27/2026 |
| 3.4.3 | 117 | 3/18/2026 |
| 3.4.2 | 114 | 3/4/2026 |
| 3.4.1 | 131 | 2/12/2026 |
| 3.4.0 | 132 | 1/22/2026 |
| 3.3.0.1 | 141 | 1/22/2026 |
| 3.3.0 | 138 | 1/22/2026 |
| 3.2.3.1 | 148 | 1/21/2026 |
| 3.2.3 | 742 | 12/3/2025 |
| 3.2.2 | 646 | 12/1/2025 |
| 3.2.1 | 307 | 6/4/2025 |
| 3.2.0 | 293 | 6/4/2025 |
| 3.1.0 | 291 | 9/24/2024 |
| 3.0.3 | 412 | 2/8/2024 |
| 3.0.2 | 411 | 1/31/2024 |
| 3.0.1 | 441 | 1/22/2024 |
| 3.0.0 | 485 | 1/8/2024 |
| 2.3.1 | 503 | 12/27/2023 |
- Recompiled to natively include .NET10.