我正在尝试在app.config中配置统一框架,请你举一个如何设置它的例子,因为当我尝试使用下面的app.config文件时,我得到以下错误:
给定的程序集名称或代码库无效。 (来自HRESULT的异常:0x80131047)
我的App.Config文件如下:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
</configSections>
<unity>
<containers>
<container>
<register type="Interfaces.ICalculator, Interfaces"
mapTo="CalculatorLibrary.Calculator,CalculatorLibrary"/>
<register type="Interfaces.ICalcRepLoop, Interfaces"
mapTo="CalculatorLibrary.CalcRepLoop,CalculatorLibrary"/>
<register type="Interfaces.IConsoleInputService, Interfaces"
mapTo="InputOutput.ConsoleInputService,InputOutput"/>
<register type="Interfaces.IConsoleOutputService, Interfaces"
mapTo="InputOutput.ConsoleOutputService,InputOutput"/>
<register type="Interfaces.IInputParserService, Interfaces"
mapTo="CalculatorCommandLibrary.InputParserService,CalculatorCommandLibrary"/>
</container>
</containers>
</unity>
</configuration>
我正在使用Prisim 4.0中的dll