Prig 1.1.1

Prig(PRototyping jIG) is a framework that generates a Test Double like Microsoft Fakes/Typemock Isolator/Telerik JustMock based on Unmanaged Profiler APIs. This framework enables that any methods are replaced with mocks. For example, a static property, a private method, a non-virtual member and so on.

Install-Package Prig -Version 1.1.1
dotnet add package Prig --version 1.1.1
<PackageReference Include="Prig" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Prig --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Prig, 1.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Prig as a Cake Addin
#addin nuget:?package=Prig&version=1.1.1

// Install Prig as a Cake Tool
#tool nuget:?package=Prig&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Version 1.1.1
* [NOTICE] The family of v1 will be obsolete soon. We strongly recommend migrating to the family of the v2. About the way of the migration, please see [our Wiki](
* Support Visual Studio 2015.
* Merge the fixes that were applied to the family of the v2.

Version 1.1.0
* Release 1.1.
* Fixed #26: Prig assembly shouldn't need InternalsVisibleToAttribute.
* Fixed #27: Test stalled if adding the indirection settings for all members of DateTime.
* Fixed #28: The indirect tests sometimes fail.
* Supported the feature "Prig setup session" that makes adding the indirection stub settings more easier.

Version 1.0.0
* Release 1.
* Fixed #25: Default parameterized method can't call indirectly.

Version 0.0.0-alpha10
* Pre-release 10.
* Fixed #23: Can't be replaced the method that exposes the type of GAC unregistered assembly.
* Fixed #24: Add Comment-Based Help.
* Supported the feature that be able to replace any methods that have some non-public type in its signature.
* [NOTICE] Changed the generated stub's API. It became that the indirection stubs and proxies are generated ALWAYS(overwrite). Until now, it no longer generates stubs and proxies after it generated them once.

Version 0.0.0-alpha9
* Pre-release 9.
* Fixed #16: Nested Type can't be resolved in its indirection stub.
* Fixed #17: Prig can't uninstall correctly against the solution that contains multiple test projects.
* Fixed #18: `Get-IndirectionStubSetting` generates invalid alias against explict implemented interface.
* Fixed #19: `Find-IndirectionTarget` should filter the members that can't call indirectly by default.
* Fixed #20: Indirection stub settings for the instance method of an internal class generates build errors.

Version 0.0.0-alpha8
* Pre-release 8.
* Supported the feature to set default behavior.
* Modifying stub settings became a bit easier. The PowerShell command `Get-IndirectionStubSetting` supports generating unique name at the same time.
* Fixed #14: `Environment.GetFolderPath(SpecialFolder)` can't call indirectly.
* Fixed #15: `WebClient.DownloadStringTaskAsync` can't create indirection stub.

About more previous versions, please see


This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Prig:

Repository Stars
Prig is a lightweight framework for test indirections in .NET Framework.

Version History

Version Downloads Last updated
1.1.1 5,192 9/14/2015
1.1.0 887 12/31/2014
1.0.0 1,053 11/16/2014
0.0.0-alpha9 688 9/28/2014
0.0.0-alpha8 696 9/15/2014
0.0.0-alpha7 689 8/14/2014
0.0.0-alpha6 704 8/8/2014
0.0.0-alpha5 688 7/31/2014
0.0.0-alpha4 696 7/27/2014
0.0.0-alpha3 680 7/16/2014
0.0.0-alpha2 673 6/21/2014
0.0.0-alpha10 956 11/3/2014
0.0.0-alpha1 741 6/15/2014