BruSoftware.SharedServices
2.0.0
dotnet add package BruSoftware.SharedServices --version 2.0.0
NuGet\Install-Package BruSoftware.SharedServices -Version 2.0.0
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="BruSoftware.SharedServices" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BruSoftware.SharedServices" Version="2.0.0" />
<PackageReference Include="BruSoftware.SharedServices" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BruSoftware.SharedServices --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BruSoftware.SharedServices, 2.0.0"
#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.
#:package BruSoftware.SharedServices@2.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BruSoftware.SharedServices&version=2.0.0
#tool nuget:?package=BruSoftware.SharedServices&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BruSoftware.SharedServices
A comprehensive collection of shared services and utilities for .NET applications.
Features
- Async Helpers: Utilities for asynchronous programming
- Configuration Management: JSON-based configuration with custom resolvers
- Extension Methods: Extensions for common types (DateTime, String, Collections, etc.)
- Attributes: Custom attributes for PropertyGrid and serialization
- Data Structures: CircularBuffer, BitArrayFast, TreeNode
- Utilities: Math utilities, XIRR calculations, Fibonacci, Permutations
- Service Locator: Dependency injection helper
- Converters: Type converters and JSON converters
Installation
dotnet add package BruSoftware.SharedServices
Usage
using BruSoftware.SharedServices;
using BruSoftware.SharedServices.ExtensionMethods;
// Use extension methods
var rounded = myDouble.RoundToSignificantDigits(3);
var isWeekend = DateTime.Now.IsWeekend();
// Use utilities
var fibonacci = Fibonacci.GetNumber(10);
var xirr = XIRR.Calculate(cashFlows, dates);
Requirements
- .NET 9.0 or higher
- x64 platform
Dependencies
- Microsoft.CSharp
- Microsoft.Extensions.Configuration
- Newtonsoft.Json
- NLog
- BruSoftware.ListMmf
License
MIT License
Contributing
Contributions are welcome! Please submit pull requests or open issues on GitHub.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- FluentAssertions (>= 8.5.0)
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Extensions.Configuration (>= 9.0.1)
- Newtonsoft.Json (>= 13.0.3)
- NLog (>= 5.4.0)
- NLog.Schema (>= 5.4.0)
- xunit (>= 2.9.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.