mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Adding a msbuild proj file and associated cmd files
Initially contains Clean, Compile, Stage targets. Default target, Build, calls each in order. All outputs end in /build folder, which is ignored for source control purposes --HG-- branch : dev
This commit is contained in:
parent
4833c65844
commit
797d166da2
@ -6,3 +6,5 @@ glob:src/Orchard.suo
|
|||||||
glob:*.user
|
glob:*.user
|
||||||
glob:*.patch
|
glob:*.patch
|
||||||
glob:*.hg
|
glob:*.hg
|
||||||
|
glob:build
|
||||||
|
glob:*.sln.cache
|
||||||
|
2
ClickToBuild.cmd
Normal file
2
ClickToBuild.cmd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
call build
|
||||||
|
pause
|
49
Orchard.proj
Normal file
49
Orchard.proj
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<LibFolder>$(MSBuildProjectDirectory)\lib</LibFolder>
|
||||||
|
<SrcFolder>$(MSBuildProjectDirectory)\src</SrcFolder>
|
||||||
|
<BuildFolder>$(MSBuildProjectDirectory)\build</BuildFolder>
|
||||||
|
|
||||||
|
<CompileFolder>$(BuildFolder)\Compile</CompileFolder>
|
||||||
|
<WebSitesFolder>$(CompileFolder)\_PublishedWebsites</WebSitesFolder>
|
||||||
|
<StageFolder>$(BuildFolder)\Stage</StageFolder>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
||||||
|
<Target Name ="Build">
|
||||||
|
<CallTarget Targets="Clean"/>
|
||||||
|
<CallTarget Targets="Compile"/>
|
||||||
|
<CallTarget Targets="Stage"/>
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
|
||||||
|
<Target Name="Clean">
|
||||||
|
<MSBuild Projects="$(SrcFolder)\Orchard.sln" Targets="Clean" />
|
||||||
|
<RemoveDir Directories="$(BuildFolder)" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<Target Name ="Compile">
|
||||||
|
<MSBuild
|
||||||
|
Projects="$(SrcFolder)\Orchard.sln"
|
||||||
|
Targets="Build"
|
||||||
|
Properties="Configuration=Release;OutputPath=$(CompileFolder)" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
|
||||||
|
<Target Name="Stage">
|
||||||
|
<ItemGroup>
|
||||||
|
<Stage-Bin-Exclude Include="$(WebSitesFolder)\**\bin\**\*" />
|
||||||
|
|
||||||
|
<Stage-Web Include="$(WebSitesFolder)\Orchard.Web\**\*" />
|
||||||
|
<Stage-Core Include="$(WebSitesFolder)\Orchard.Core\**\*" Exclude="@(Stage-Bin-Exclude)" />
|
||||||
|
<Stage-Packages Include="$(WebSitesFolder)\**\*" Exclude="@(Stage-Web);@(Stage-Core);@(Stage-Bin-Exclude)" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Copy SourceFiles="@(Stage-Web)" DestinationFolder="$(StageFolder)\%(RecursiveDir)" />
|
||||||
|
<Copy SourceFiles="@(Stage-Core)" DestinationFolder="$(StageFolder)\Core\%(RecursiveDir)" />
|
||||||
|
<Copy SourceFiles="@(Stage-Packages)" DestinationFolder="$(StageFolder)\Packages\%(RecursiveDir)" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
</Project>
|
Loading…
Reference in New Issue
Block a user