This repository contains extended source code of the Simple Calculator MEF Application Simple calculator
This example shows the usage of the Managed Extensibility Framework (MEF)
- Open
Program.cs
- In the
app.config
, specify the path to the Extensions folder on your local computer
<add key="ExtensionsFolder" value="Extensions"/>
You can specify a relative or a full path and even reference parent paths such as ..\..\Extensions
.
HINT: Every time a new part is added to the Extensions
project it has to be rebuilt to make the part available to the calculator.
- Run the project
- A command window appears.
- Type addition or subtraction commands
- 1+1
- 1-2
Typing a not implemented operation symbol like 1^2 causes the message: Operation not found!