0
に異なる設定ファイルを提供する:生憎、これは動作しませんは、私は、このソリューションを試し 、ConfigurationSettingsReaderコンストラクタ
var builder = new ContainerBuilder();
builder.RegisterModule(new ConfigurationSettingsReader("autofac", "Other.config");
、私は情報を取得しますその "autofac"セクションを読み取ることができませんでした。ここで
は私Other.configです:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="autofac" type="Autofac.Configuration.SectionHandler, Autofac.Configuration"/>
</configSections>
<autofac>
<components>
<component type="IoCConsoleApplication1.Car, IoCConsoleApplication1">
<properties>
<property name="Description" value="CIĘŻAROWY"/>
</properties>
</component>
</components>
</autofac>
<startup>
<supportedRuntime version="v2.0.50727" sku="Client"/>
</startup>
</configuration>
すべてのアイデアは、ここでは何が間違っていますか?
よろしく、 ルカシュ