SonghayCore.xUnit 8.0.2

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

SonghayCore

Build Status

Here is the Core code to install as a NuGet package for all of my studio Solutions. Anyone who may be reading this 👀 is free to do the same. This package is based on net8.0.

NuGet package 📦: SonghayCore

documentation 📚: SonghayCore API

core reusable, opinionated concerns

Songhay.Hosting

One of the most important additions to .NET came in .NET 6.0 (circa 2021): the .NET Generic Host [📖 docs]. This host concept from Microsoft allows developers to not have to reinvent:

  • Dependency injection (DI)
  • Logging
  • Configuration
  • App shutdown
  • IHostedService implementations (for long-running background tasks [📖 docs ])

All ASP.NET developers expect to get these things “for free” and, finally, Microsoft is basically letting all .NET developers get these things for free. This Core recognizes the .NET Generic Host, stating with the DefaultHostedService class (see Songhay.Extensions below for more details).

Songhay.Diagnostics

This Core is concerned with tracing as well as logging. Logging concerns should be logically above this Core. TraceSources and TraceSourceExtensions define how tracing should be implemented with a bias toward using all source levels. When tracing is not configured for this Core then it will be ignored without throwing exceptions.

For a review of the organizational difference between tracing and logging, see “Tracing vs Logging vs Monitoring: What’s the Difference?” by Chrissy Kidd.

Documentation 📚: Songhay.Diagnostics

Songhay.Extensions

The Songhay System uses imperative C# code with a view to make it more functional in an effort to control complexity and enhance maintainability.

The preference for extension methods encourages stateless, reusable routines (many of them are “pure” functions).

Notable extensions:

There is support for URI templates (to be used with RestApiMetadata) in the form of extension methods, running on top of Tavis.UriTemplates.

Documentation 📚: Songhay.Extensions

Songhay.Models

The Core models of the Songhay System define types for MIME, XHTML, OPML, REST, the Repository, the Display Item (for WPF and other MVVM solutions), etc.

The Core models are “anemic” by design (there are very few abstract classes)—any logic would be found first in an Extension Method.

Notable models:

Documentation 📚: Songhay.Models

Songhay.Xml

The “core” of the Core is concern for XML. The Songhay System started out as utilities around XPathDocument and grew into LINQ for XML—over XDocument.

Documentation 📚: Songhay.Xml

fundamental boundary-crossing abstractions

This Core features the ‘boundary-crossing abstractions’ (and default implementations) needed for the enterprise work based on my historical needs:

Dependency-injecting these ‘boundary-crossing abstractions’ are far more mockable than, say, using HttpRequestMessage directly.

the core Activity concept

This Core features the concept of the Activity which is a way to formally recognize that all line of business applications can be thought of as a ‘tree’ of inputs and outputs. It follows that each ‘node’ of this ‘tree’ can be called an Activity. The following abstractions classify the Activities needed so far:

  • IActivity — defines the conventional, synchronous, input-output Activities
  • IActivityOutputOnly — defines the conventional, synchronous Activities with output only (input usually comes from IConfiguration in this case)
  • IActivityOutputOnlyTask — defines the conventional, asynchronous Activities with output only (input usually comes from IConfiguration in this case)
  • IActivityTask — defines the conventional, asynchronous, input-output Activities

This Activity concept which I regard as fundamental is the least likely architectural reality that would be shared by my peers 😐 From the Microsoft point of view, my Activity concept would be buried under Windows Workflow Foundation or BizTalk Server.

satellite packages

SonghayCore.xUnit

Defines reusable class definitions for xUnit. Featured is the ProjectFileDataAttribute, allowing test data files to be loaded from a relative path.

NuGet package 📦: SonghayCore.xUnit

Documentation 📚: Songhay.Tests

SonghayCore.Newtonsoft

Core reusable, opinionated Newtonsoft concerns for my C# projects.

GitHub repo: https://github.com/BryanWilhite/SonghayCore.Newtonsoft

NuGet package 📦: SonghayCore.Newtonsoft

Studio packages dependent on SonghayCore

graph BT
    netstandard2[.NET Standard 2.0]
    net8[.NET 8.0]

    1[SonghayCore]
    2[SonghayCore.Newtonsoft]

    net8-->1
    netstandard2-->2
    2-..->|optional addition|1

    1-->3[SonghayCore.xUnit]
    1-->4[Songhay.DataAccess]
    1-->5[Songhay.Feeds]
    1-->6[Songhay.Publications]
    1-->7[Songhay.Social]

@BryanWilhite

Product 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.  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 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.

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
8.0.2 269 6/13/2025
8.0.1 148 5/6/2025
8.0.0 2,005 1/31/2025
6.1.4 131 10/20/2024
6.1.2 207 6/9/2024
6.1.1 152 2/20/2024
6.1.0 158 2/9/2024
6.0.1 581 7/23/2022
6.0.0 518 7/17/2022
5.0.7 581 5/21/2022
5.0.6 497 6/26/2021
5.0.5 476 6/7/2021
5.0.4 487 5/16/2021
5.0.3 444 5/16/2021
5.0.2 460 5/16/2021
5.0.1 552 5/15/2021
5.0.0 755 1/1/2021
3.0.21 687 7/12/2020
3.0.20 637 6/28/2020
3.0.19 714 2/13/2020
3.0.18 697 12/25/2019
3.0.17 626 12/17/2019
3.0.16 665 12/17/2019
3.0.15 617 12/6/2019
3.0.14 589 12/5/2019
3.0.13 609 12/5/2019
3.0.12 622 11/30/2019
3.0.11 602 11/30/2019
3.0.10 594 11/28/2019
3.0.9 597 11/26/2019
3.0.8 653 10/4/2019
3.0.7 699 7/16/2019
3.0.6 650 6/12/2019
3.0.5 664 6/10/2019
3.0.4 690 6/9/2019
3.0.3 690 5/30/2019
3.0.2 677 5/18/2019
3.0.1 697 5/18/2019
3.0.0 630 5/9/2019
2.0.0 756 1/30/2019

upgrade of dependencies 📦🔝