devoft.Core 3.0.2

dotnet add package devoft.Core --version 3.0.2
                    
NuGet\Install-Package devoft.Core -Version 3.0.2
                    
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="devoft.Core" Version="3.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="devoft.Core" Version="3.0.2" />
                    
Directory.Packages.props
<PackageReference Include="devoft.Core" />
                    
Project file
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 devoft.Core --version 3.0.2
                    
#r "nuget: devoft.Core, 3.0.2"
                    
#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 devoft.Core@3.0.2
                    
#: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=devoft.Core&version=3.0.2
                    
Install as a Cake Addin
#tool nuget:?package=devoft.Core&version=3.0.2
                    
Install as a Cake Tool

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.Abstractions
  • Microsoft.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:

  • IScopeAspect
  • ScopeAspectBase
  • Singleton
  • StateMachine
  • Cache
  • Auxiliary interfaces such as IUndoable, IHierarchicalObject, and IPropertyChangedNotifier

devoft.Core.Patterns.Scoping

Groups the execution infrastructure with scope context:

  • ScopeTaskBase<TInheritor> in Patterns/Scoping/ScopeTask.cs
  • ScopeContext
  • ScopeResult
  • ScopeUnhandledException
  • 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:

  • CollectionExtensions
  • DictionaryExtensions
  • EnumerableExtensions
  • Journal
  • ScopedDictionary

devoft.System.Localization

Includes localization support:

  • ILocalizedResourceService
  • LocalizedResourceService
  • LocalizedResourceEntry
  • ResourceSettings
  • LocalizedResourceServiceInjectionExtensions

Other utilities in devoft.System

The project also includes extensions and helpers such as:

  • BooleanExtensions
  • StringExtensions
  • TypeExtensions
  • ObjectExtensions
  • DateTimeHelper
  • ConcurrencyHelper
  • Disposable
  • DictionaryObject
  • Handler
  • IDispatcher
  • FileSystemHelper
  • 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.* and devoft.System.* namespaces depending on the functional area.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
3.0.2 174 5/21/2026
2.1.1 990 6/18/2020
2.1.0 1,102 6/9/2020
2.0.0 1,862 7/1/2019
1.0.20 1,414 9/9/2018