devoft.Core
3.0.2
dotnet add package devoft.Core --version 3.0.2
NuGet\Install-Package devoft.Core -Version 3.0.2
<PackageReference Include="devoft.Core" Version="3.0.2" />
<PackageVersion Include="devoft.Core" Version="3.0.2" />
<PackageReference Include="devoft.Core" />
paket add devoft.Core --version 3.0.2
#r "nuget: devoft.Core, 3.0.2"
#:package devoft.Core@3.0.2
#addin nuget:?package=devoft.Core&version=3.0.2
#tool nuget:?package=devoft.Core&version=3.0.2
devoft.Core
Base utility and pattern library for .NET 10 focused on observable collections, execution scoping, localization, and general system extensions.
Description
devoft.Core is a reusable library that groups cross-cutting components for .NET applications. The project includes common utilities, extensions over framework base types, and several ready-to-use patterns for application code.
The capabilities currently visible in the project include:
- Scoping and observed execution patterns.
- Observable collections and sorted views for binding scenarios.
- Extensions for collections, strings, types, dates, and tasks.
- Localization support based on configurable resources.
- Concurrency, IO, and auxiliary object utilities.
Target framework and packaging
- Target framework:
net10.0 - Package id:
devoft.Core - Current version:
3.0.0 - License:
MIT - Repository URL:
https://github.com/devoft/NetExtensions
The package is configured to be generated on build through:
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Main dependencies
The project currently references:
Microsoft.Extensions.DependencyInjection.AbstractionsMicrosoft.Extensions.Options
These dependencies provide support for DI integration and typed configuration, especially in components such as localization services.
General structure
Main namespaces and areas
devoft.Core.Patterns
Contains reusable patterns and contracts, for example:
IScopeAspectScopeAspectBaseSingletonStateMachineCache- Auxiliary interfaces such as
IUndoable,IHierarchicalObject, andIPropertyChangedNotifier
devoft.Core.Patterns.Scoping
Groups the execution infrastructure with scope context:
ScopeTaskBase<TInheritor>inPatterns/Scoping/ScopeTask.csScopeContextScopeResultScopeUnhandledException- Recording components in
Patterns/Scoping/Recording/*
This block allows defining executions with context, result observation, and scope start and end aspects.
devoft.System.Collections.ObjectModel
Includes collections oriented to observable scenarios:
ObservableView<T>ObservableViewBase<T>ObservableSortedView<T>
These classes are intended to maintain a synchronized view over a data sequence, producing suitable changes for observable consumers.
devoft.System.Collections.Generic
Includes extensions and auxiliary collection structures:
CollectionExtensionsDictionaryExtensionsEnumerableExtensionsJournalScopedDictionary
devoft.System.Localization
Includes localization support:
ILocalizedResourceServiceLocalizedResourceServiceLocalizedResourceEntryResourceSettingsLocalizedResourceServiceInjectionExtensions
Other utilities in devoft.System
The project also includes extensions and helpers such as:
BooleanExtensionsStringExtensionsTypeExtensionsObjectExtensionsDateTimeHelperConcurrencyHelperDisposableDictionaryObjectHandlerIDispatcherFileSystemHelper- LINQ adapters in
System/Linq/* - Validation utilities in
System/Text/Validation/* - Async extensions in
System/Threading/Tasks/TaskExtension.cs
Highlighted components
ScopeTask
ScopeTaskBase<TInheritor> allows defining an execution unit that:
- Maintains a current
ScopeContext. - Exposes observation through
IObservable<object>. - Executes aspects before and after the scope.
- Supports synchronous and asynchronous actions.
- Preserves the last result and execution status.
General usage pattern:
- Define an action with
Define(...). - Attach aspects with
AddAspects(...). - Subscribe to results with
Observe(...). - Execute with
StartAsync().
ObservableView
ObservableView<T> maintains an observable view over a set of elements and applies updates through merge operations between the current state and the new content.
Its responsibilities include:
- Inserting new elements.
- Removing missing elements.
- Reordering existing elements.
- Maintaining an internal representation ready for enumeration and binding.
LocalizedResourceService
LocalizedResourceService provides access to localized resources using typed configuration through IOptions<ResourceSettings>.
Its purpose is to:
- Set the current culture.
- Resolve resources by key.
- Deserialize resources to the requested type.
Build
From the repository root:
dotnet build devoft.Core\devoft.Core.csproj
To also generate the NuGet package configured by the project:
dotnet build devoft.Core\devoft.Core.csproj -c Release
Usage from another project
The package can be consumed through a project reference or as a package generated on build, depending on the repository workflow.
Project reference example:
<ItemGroup>
<ProjectReference Include="..\devoft.Core\devoft.Core.csproj" />
</ItemGroup>
Intended use cases
devoft.Core is useful as a shared base for applications or libraries that need:
- Reusable cross-cutting patterns.
- Observable collections for UI or view synchronization.
- Tasks with context and execution observation.
- Common helpers without depending on extra layers.
- Simple localization services integrated with DI.
Notes
- The project is intended for internal reuse or shared reuse as a base package.
- The solution includes a separate test project:
devoft.Core.Test. - The code uses
devoft.Core.*anddevoft.System.*namespaces depending on the functional area.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.8)
- Microsoft.Extensions.Options (>= 10.0.8)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on devoft.Core:
| Package | Downloads |
|---|---|
|
devoft.ClientModel
Package Description |
|
|
devoft.MeassureSystem
A set of easy to use types for units (Length, Volume, Weight, Time, etc) |
GitHub repositories
This package is not used by any popular GitHub repositories.