2 .\" ccrewrite manual page.
3 .\" Copyright (C) 2010 Chris Bacon.
5 .\" Chris Bacon <chrisbacon76@gmail.com>
9 ccrewrite \- Rewrite CLR assemblies for runtime code contract verification.
12 .B ccrewrite --assembly=<assembly> [options]
14 Rewrite CLR assemblies to convert calls into the System.Diagnostics.Contracts
15 namespace to perform runtime contract verification. This includes
16 contract inheritance for virtual methods.
18 The assembly must have been built with the symbol CONTRACTS_FULL defined,
19 otherwise the calls to the contract methods will have been removed
22 Currently only pre-conditions are supported, using the Contract.Requires()
23 method. Contract inheritance for virtual methods is supported. Only a
24 limited range of operations and types can be used within a pre-condition,
25 an error message will be shown if ccrewrite is unable to process the
27 .SH CONFIGURATION OPTIONS
29 .I "--assembly <assembly-name>"
30 The assembly to rewrite. If no --output option is specified, then this file
31 is overwritten with the rewritten version.
34 Use debug information if available to improve the usefulness of contract
38 Show help for ccrewrite, listing configuration options.
40 .I "--level <level> (default=4)"
41 Set which contract types are present in rewritten assembly:
47 (Each level includes all previous levels)
49 .I "--output <file-name>"
50 Write the rewritten assembly to the specified file. If this is not present
51 then the input assembly file is overwritten with the rewritten version.
53 .I "--rewrite (default=true)"
54 Rewrite the assembly. If false, then nothing is done.
56 .I "--throwOnFailure (default=false)"
57 Throw a ContractException on unhandled contract failure. The default
58 behaviour is to Assert.
62 Written by Chris Bacon
64 Copyright (C) 2010 Chris Bacon.
65 Released under MIT license.
67 Visit http://www.mono-project.com for details