mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Adding Precompiled target
This target will create a folder containing precompiled assemblies for all the modules referenced by the solution, disable the dynamic compilation and also remove all source files --HG-- branch : 1.x
This commit is contained in:
parent
c9b8a1dc49
commit
800c151076
28
Orchard.proj
28
Orchard.proj
@ -21,6 +21,7 @@
|
|||||||
<WebSitesFolder>$(CompileFolder)\_PublishedWebsites</WebSitesFolder>
|
<WebSitesFolder>$(CompileFolder)\_PublishedWebsites</WebSitesFolder>
|
||||||
<StageFolder>$(BuildFolder)\Stage</StageFolder>
|
<StageFolder>$(BuildFolder)\Stage</StageFolder>
|
||||||
<MsDeployFolder>$(BuildFolder)\MsDeploy</MsDeployFolder>
|
<MsDeployFolder>$(BuildFolder)\MsDeploy</MsDeployFolder>
|
||||||
|
<PrecompiledFolder>$(BuildFolder)\Precompiled</PrecompiledFolder>
|
||||||
<ProfilingFolder>$(BuildFolder)\Profiling</ProfilingFolder>
|
<ProfilingFolder>$(BuildFolder)\Profiling</ProfilingFolder>
|
||||||
<GalleryFolder>$(BuildFolder)\Gallery</GalleryFolder>
|
<GalleryFolder>$(BuildFolder)\Gallery</GalleryFolder>
|
||||||
|
|
||||||
@ -70,6 +71,13 @@
|
|||||||
<CallTarget Targets="Package-Zip"/>
|
<CallTarget Targets="Package-Zip"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="Precompiled">
|
||||||
|
<CallTarget Targets="Clean"/>
|
||||||
|
<CallTarget Targets="Compile"/>
|
||||||
|
<CallTarget Targets="Package-Stage"/>
|
||||||
|
<CallTarget Targets="Package-Precompiled"/>
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="Profiling">
|
<Target Name="Profiling">
|
||||||
<CallTarget Targets="Clean"/>
|
<CallTarget Targets="Clean"/>
|
||||||
<CallTarget Targets="Compile"/>
|
<CallTarget Targets="Compile"/>
|
||||||
@ -308,6 +316,26 @@
|
|||||||
<MakeDir Directories="$(MsDeployFolder)\Orchard\bin\HostRestart"/>
|
<MakeDir Directories="$(MsDeployFolder)\Orchard\bin\HostRestart"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<!-- Packaging (Precompiled) -->
|
||||||
|
<Target Name="Package-Precompiled">
|
||||||
|
<ItemGroup>
|
||||||
|
<Precompiled-Exclude-Source Include="$(StageFolder)\**\*.cs;$(StageFolder)\**\*.csproj" />
|
||||||
|
<Precompiled-Folder-Input Include="$(StageFolder)\**\*" Exclude="$(StageFolder)\**\bin\**\*.xml;$(StageFolder)\**\obj\**\*;@(Precompiled-Exclude-Source)" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<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">
|
<Target Name="Package-Zip">
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Zip-Exclude Include="
|
<Zip-Exclude Include="
|
||||||
|
Loading…
Reference in New Issue
Block a user