Add ability to configure orchard components via config file

A special file "HostSingletons.config" is read at startup to
look for properties to set on host components.

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-12-12 22:40:39 -08:00
parent 01fdf07b95
commit b2d0f1d623
5 changed files with 155 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
<HostComponents>
<Components>
<Component Type="Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader">
<Properties>
<Property Name="Disabled" Value="true"/>
</Properties>
</Component>
</Components>
</HostComponents>

View File

@@ -122,6 +122,9 @@
<DependentUpon>Global.asax</DependentUpon>
</Compile>
<Content Include="Config\log4net.config" />
<Content Include="Config\Sample.HostComponents.config">
<SubType>Designer</SubType>
</Content>
<None Include="Media\web.config" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>