SystemLibrary.Common.Net
8.0.0.6
dotnet add package SystemLibrary.Common.Net --version 8.0.0.6
NuGet\Install-Package SystemLibrary.Common.Net -Version 8.0.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SystemLibrary.Common.Net" Version="8.0.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SystemLibrary.Common.Net --version 8.0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SystemLibrary.Common.Net, 8.0.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SystemLibrary.Common.Net as a Cake Addin #addin nuget:?package=SystemLibrary.Common.Net&version=8.0.0.6 // Install SystemLibrary.Common.Net as a Cake Tool #tool nuget:?package=SystemLibrary.Common.Net&version=8.0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SystemLibrary Common Net
Description
Library with classes and methods for every >= .NET 8 application
Features
- Extensions for Strings, Arrays, Lists, ... such as Is() and IsNot()
- Dump.Write() "equivalent" to console.log in javascript
- Config<> class, inherit it and it reads .json config file that has the same name as the C# class, also runs transformations based on EnvironmentName
- ToValue and ToText extensions on Enum, through two attributes: [EnumText], [EnumValue]
- Json() on any object, converting to json string or to a C# model from a json string
- JsonPartial() on a json string, to convert only a part of the whole json, into the C# class, no need to model it all
- Fire and forget in Async.Run()!
- Encrypt() and Decrypt() through string and byte[] extensions - uses AES CBC PKCS7
- Obfuscate() and Deobfuscate() through string extension
- ToBase64() and FromBase64() through string and byte[] extensions
- ToHash(), ToSha1(), ToSha256() through Stream, string and byte[] extensions
- Service Locator in Services.Get<>()
Requirements
- >= .NET 8
Latest Release Notes
- 8.0.0.6
- toCamelCase() now lowers only first char if input is one-worded pascal cased (fix)
- ToPascalCase() now uppers only first char if input is one-worded camel cased (fix)
Major Breaking Versions
- 7.12.0.1
- Cryptation rewritten, parameterless Encrypt() returns cipher text with a random IV
- Cryptation environment key "SYSLIBCRYPTATIONKEY" removed
- Json() conversions for date time rewritten
- ContentRootPath is never within /bin (exception: .Tests.csproj projects), so Config files are never read from within bin-folder
Version history
- View git history of this file if interested
Installation
- Simply install the nuget package
- Installation guide
Documentation
Nuget
Source
Suggestions and feedback
License
- Free
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.AspNetCore.DataProtection (>= 8.0.10)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 8.0.0)
- Microsoft.Extensions.Configuration.Json (>= 8.0.1)
- Microsoft.Extensions.Configuration.Xml (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SystemLibrary.Common.Net:
Package | Downloads |
---|---|
SystemLibrary.Common.Web
Library with classes and methods for every >= .NET 8 web application https://github.com/systemlibrary/systemlibrary-common-web/#Description Installation https://systemlibrary.github.io/systemlibrary-common-web/Install.html Documentation with sample code https://systemlibrary.github.io/systemlibrary-common-web/ |
GitHub repositories
This package is not used by any popular GitHub repositories.