ShadowKit 1.0.4

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

ShadowKit

ShadowKit is a NuGet meta package that bundles a set of tools designed to support different development scenarios, especially in testing and utility contexts. It consists of several specialized sub-packages, each focusing on a specific area of functionality.

Packages

ShadowKit.IO

This package provides tools for working with the file system. It is particularly useful in test scenarios that require temporary file or directory structures.

Included tools:

  • TransientFileManager
    A utility for creating temporary files with predefined content. The files are automatically cleaned up after use.

  • TransientDirectoryManager
    A utility for managing temporary directories, useful for scenarios that require short-lived folder structures.

These tools are especially helpful in unit tests where temporary and isolated file system resources are needed.

ShadowKit.Text

This package provides tools for working with text.

Included tools:

  • DetectLineEnding
    Detects the type of line endings used in a given text (e.g., \n, \r\n, \r).

  • StringComparerBuilder
    Builds EqualityComparer<string> instances with extended comparison capabilities, especially useful for comparing multi-line strings. Features include:

    • Ignoring differences in line endings
    • Comparing multi-line text line by line using trimmed lines

These tools are particularly helpful in test scenarios where flexible and robust string comparison is required.

ShadowKit.Threading

This package provides tools for simulating a SynchronizationContext, which can be useful in unit tests that need to test asynchronous code in a controlled threading environment.


Getting Started

To install the full ShadowKit meta package:

dotnet add package ShadowKit

Or install individual packages as needed:

dotnet add package ShadowKit.IO
dotnet add package ShadowKit.Text
dotnet add package ShadowKit.Threading

License

ShadowKit is released under the MIT License.

There are no supported framework assets in this 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
1.0.4 139 6/16/2025
1.0.3 126 6/16/2025
1.0.2 143 6/16/2025
1.0.1 150 6/15/2025
1.0.0 135 6/15/2025
0.9.11-beta 128 6/15/2025
0.9.10-beta 132 6/15/2025
0.9.8-beta 130 6/15/2025
0.9.7-beta 129 6/15/2025
0.9.6-beta 125 6/15/2025
0.9.5-beta 129 6/15/2025
0.9.4-beta 130 6/15/2025
0.9.3-beta 128 6/15/2025
0.9.2-beta 131 6/15/2025
0.9.1-beta 101 6/15/2025
0.9.0-beta 103 6/15/2025
0.0.2-alpha 109 6/15/2025
0.0.1-alpha 109 6/15/2025