#18971: Disabling dynamic compilation in deployment packages

Work Item: 18971

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2012-09-24 15:08:55 -07:00
parent a7e7303eef
commit 7f0dafdd7e

View File

@ -272,6 +272,14 @@
<XmlDelete XmlFileName="$(StageFolder)\Config\log4net.config"
XPath="/log4net/root/appender-ref[@ref='debug-file']" />
<!-- disable dynamic compilation loader -->
<Move SourceFiles="$(StageFolder)\Config\Sample.HostComponents.config"
DestinationFiles="$(StageFolder)\Config\HostComponents.config"/>
<XmlUpdate XmlFileName="$(StageFolder)\Config\HostComponents.config"
XPath="/HostComponents/Components/Component[@Type='Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader']/Properties/Property/@Value"
Value="true" />
<!-- move over extra non-content files the csproj referenced -->
<Copy SourceFiles="@(StageProjectAlteration-ExtraFiles->'$(SrcFolder)\Orchard.Web\%(Identity)')"
DestinationFolder="$(StageFolder)\%(RecursiveDir)"/>
@ -326,14 +334,6 @@
<Copy SourceFiles="@(Precompiled-Folder-Input)"
DestinationFolder="$(PrecompiledFolder)\%(RecursiveDir)"/>
<!-- disable dynamic compilation loader -->
<Move SourceFiles="$(PrecompiledFolder)\Config\Sample.HostComponents.config"
DestinationFiles="$(PrecompiledFolder)\Config\HostComponents.config"/>
<XmlUpdate XmlFileName="$(PrecompiledFolder)\Config\HostComponents.config"
XPath="/HostComponents/Components/Component[@Type='Orchard.Environment.Extensions.Loaders.DynamicExtensionLoader']/Properties/Property/@Value"
Value="true" />
<MakeDir Directories="$(PrecompiledFolder)\bin\HostRestart"/>
</Target>
<Target Name="Package-Zip">