Download Final report - Chair of Software Engineering

Transcript
6.4 How to use Contract Wizard 3.0
64
6.4 HOW TO USE CONTRACT WIZARD 3.0
6.4.1 ADDING ASSEMBLY TO GAC
Before you start adding contracts to a .NET assembly, make sure that the assembly is installed in
the global assembly cache (GAC); otherwise the Contract Wizard cannot compile your assembly.
If you are using Windows you can use the program “Microsoft .NET Framework Configuration”
or “Microsoft .NET Framework Configuration 1.1” available from “Control Panel\Administrative
Tools” (see Figure 14). (Which version depends on the .NET Framework version you are using.)
There you can view a list of assemblies in the GAC. You can add an assembly to the cache by
selecting it from the appearing “Add an Assembly” dialog.
Figure 14: .NET Configuration 1.1, assembly cache
6.4.2 GUI VERSION
When you launch the application the Contract Wizard first checks whether you have defined the
environment variable CONTRACT. If you have forgotten to set it, the wizard asks you to do so.
Figure 15 shows the dialog that the wizard launches when you missed to set the CONTRACT
variable.