OniStubs 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package OniStubs --version 1.0.2                
NuGet\Install-Package OniStubs -Version 1.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="OniStubs" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OniStubs --version 1.0.2                
#r "nuget: OniStubs, 1.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.
// Install OniStubs as a Cake Addin
#addin nuget:?package=OniStubs&version=1.0.2

// Install OniStubs as a Cake Tool
#tool nuget:?package=OniStubs&version=1.0.2                

Oni Stubs

Stub dlls made for Oxygen not including, that emulate the APIs found within the source dlls.

Missing features / Known issues

  • Events
  • Delegates
  • Nested generic classes that are 2+ deep
  • Members whose types use a security critical type (Like HashSet)

Dev guide

  • Use restore lib to copy the dlls.
  • Update the libraries dependencies to match the target dlls
  • Run the T4 templates found within the solution to regenerate the types

Alternative method to create stubs

  • Decomplile the projects and compile with the -refout compiler option.
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
2.0.0 155 4/7/2024
1.0.2 519 10/17/2021

Initial package