mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 17:08:47 +08:00
Remove tabs and format file
--HG-- branch : dev
This commit is contained in:
parent
23b101a644
commit
6d082f2ce3
106
Orchard.proj
106
Orchard.proj
@ -1,27 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<!-- Initialization -->
|
||||
<!-- Initialization -->
|
||||
|
||||
<PropertyGroup>
|
||||
<LibFolder>$(MSBuildProjectDirectory)\lib</LibFolder>
|
||||
<SrcFolder>$(MSBuildProjectDirectory)\src</SrcFolder>
|
||||
<BuildFolder>$(MSBuildProjectDirectory)\build</BuildFolder>
|
||||
<SourceFolder>$(MSBuildProjectDirectory)\artifacts\Source</SourceFolder>
|
||||
<WebPIFolder>$(MSBuildProjectDirectory)\artifacts\WebPI</WebPIFolder>
|
||||
|
||||
<CompileFolder>$(BuildFolder)\Compile</CompileFolder>
|
||||
<WebSitesFolder>$(CompileFolder)\_PublishedWebsites</WebSitesFolder>
|
||||
<StageFolder>$(BuildFolder)\Stage</StageFolder>
|
||||
<ProfilingFolder>$(BuildFolder)\Profiling</ProfilingFolder>
|
||||
|
||||
<BuildPlatform Condition="$(ProgramW6432) != ''">x64</BuildPlatform>
|
||||
<BuildPlatform Condition="$(BuildPlatform) == ''">x86</BuildPlatform>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<LibFolder>$(MSBuildProjectDirectory)\lib</LibFolder>
|
||||
<SrcFolder>$(MSBuildProjectDirectory)\src</SrcFolder>
|
||||
<BuildFolder>$(MSBuildProjectDirectory)\build</BuildFolder>
|
||||
<SourceFolder>$(MSBuildProjectDirectory)\artifacts\Source</SourceFolder>
|
||||
<WebPIFolder>$(MSBuildProjectDirectory)\artifacts\WebPI</WebPIFolder>
|
||||
|
||||
<CompileFolder>$(BuildFolder)\Compile</CompileFolder>
|
||||
<WebSitesFolder>$(CompileFolder)\_PublishedWebsites</WebSitesFolder>
|
||||
<StageFolder>$(BuildFolder)\Stage</StageFolder>
|
||||
<ProfilingFolder>$(BuildFolder)\Profiling</ProfilingFolder>
|
||||
|
||||
<BuildPlatform Condition="$(ProgramW6432) != ''">x64</BuildPlatform>
|
||||
<BuildPlatform Condition="$(BuildPlatform) == ''">x86</BuildPlatform>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(LibFolder)\msbuild\MSBuild.Community.Tasks.Targets"/>
|
||||
|
||||
<!-- Coordinating Targets -->
|
||||
<!-- Coordinating Targets -->
|
||||
|
||||
<Target Name ="Build">
|
||||
<CallTarget Targets="Clean"/>
|
||||
@ -44,62 +44,62 @@
|
||||
</Target>
|
||||
|
||||
|
||||
<!-- Building -->
|
||||
<!-- Building -->
|
||||
|
||||
<Target Name="Clean">
|
||||
<MSBuild Projects="$(SrcFolder)\Orchard.sln" Targets="Clean" />
|
||||
<RemoveDir Directories="$(BuildFolder)" />
|
||||
</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)" />
|
||||
Properties="Configuration=Release;OutputPath=$(CompileFolder)" />
|
||||
</Target>
|
||||
|
||||
|
||||
<!-- Testing -->
|
||||
<!-- Testing -->
|
||||
|
||||
<Target Name ="Test">
|
||||
<PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<UseSqlite64 Condition="'$(teamcity_version)'=='' And '$(BuildPlatform)' == 'x64'">True</UseSqlite64>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<Message Condition="'$(UseSqlite64)' == 'True'" Text="Testing with x64 version of Sqlite"/>
|
||||
|
||||
<CreateItem Include="$(CompileFolder)\*.Tests.*dll">
|
||||
<Output TaskParameter="Include" ItemName="TestAssemblies" />
|
||||
</CreateItem>
|
||||
|
||||
<CreateItem Include="$(CompileFolder)\*.Tests.*dll">
|
||||
<Output TaskParameter="Include" ItemName="TestAssemblies" />
|
||||
</CreateItem>
|
||||
|
||||
<!-- use x64 sqlite for tests depending on build platform -->
|
||||
<Copy Condition="'$(UseSqlite64)' == 'True'"
|
||||
SourceFiles="$(LibFolder)\sqlite\x64\System.Data.SQLite.dll"
|
||||
<Copy Condition="'$(UseSqlite64)' == 'True'"
|
||||
SourceFiles="$(LibFolder)\sqlite\x64\System.Data.SQLite.dll"
|
||||
DestinationFiles="$(CompileFolder)\System.Data.SQLite.dll" />
|
||||
|
||||
<NUnit Assemblies="@(TestAssemblies)" ToolPath="$(LibFolder)\nunit" WorkingDirectory="$(CompileFolder)" OutputXmlFile="$(BuildFolder)\Orchard.Tests.xml" />
|
||||
|
||||
<NUnit Assemblies="@(TestAssemblies)" ToolPath="$(LibFolder)\nunit" WorkingDirectory="$(CompileFolder)" OutputXmlFile="$(BuildFolder)\Orchard.Tests.xml" />
|
||||
|
||||
<!-- restore sqlite version if needed -->
|
||||
<Copy Condition="'$(UseSqlite64)' == 'True'"
|
||||
SourceFiles="$(LibFolder)\sqlite\System.Data.SQLite.dll"
|
||||
<Copy Condition="'$(UseSqlite64)' == 'True'"
|
||||
SourceFiles="$(LibFolder)\sqlite\System.Data.SQLite.dll"
|
||||
DestinationFiles="$(CompileFolder)\System.Data.SQLite.dll" />
|
||||
</Target>
|
||||
|
||||
<Target Name ="Spec">
|
||||
<CreateItem Include="$(CompileFolder)\*.Specs.dll">
|
||||
<Output TaskParameter="Include" ItemName="SpecAssemblies" />
|
||||
</CreateItem>
|
||||
<NUnit Assemblies="@(SpecAssemblies)" ToolPath="$(LibFolder)\nunit" />
|
||||
<CreateItem Include="$(CompileFolder)\*.Specs.dll">
|
||||
<Output TaskParameter="Include" ItemName="SpecAssemblies" />
|
||||
</CreateItem>
|
||||
<NUnit Assemblies="@(SpecAssemblies)" ToolPath="$(LibFolder)\nunit" />
|
||||
</Target>
|
||||
|
||||
<!-- Packaging -->
|
||||
<!-- Packaging -->
|
||||
|
||||
<UsingTask AssemblyFile="$(CompileFolder)\MSBuild.Orchard.Tasks.dll" TaskName="MSBuild.Orchard.Tasks.StageProjectAlteration" />
|
||||
<UsingTask AssemblyFile="$(CompileFolder)\MSBuild.Orchard.Tasks.dll" TaskName="MSBuild.Orchard.Tasks.StageProjectAlteration" />
|
||||
|
||||
<Target Name="Package-Stage">
|
||||
<ItemGroup>
|
||||
<Stage-Bin-Exclude Include="$(WebSitesFolder)\**\bin\**\*" />
|
||||
|
||||
|
||||
<Stage-Web Include="$(WebSitesFolder)\Orchard.Web\**\*;$(SrcFolder)\Orchard.Web\*.csproj" />
|
||||
<Stage-Core Include="$(WebSitesFolder)\Orchard.Core\**\*" Exclude="@(Stage-Bin-Exclude)" />
|
||||
<Stage-Modules Include="$(WebSitesFolder)\**\*" Exclude="@(Stage-Web);@(Stage-Core);@(Stage-Bin-Exclude)" />
|
||||
@ -133,7 +133,7 @@
|
||||
Value="Error" />
|
||||
|
||||
<!-- move over extra non-content files the csproj referenced -->
|
||||
<Copy SourceFiles="@(StageProjectAlteration-ExtraFiles->'$(SrcFolder)\Orchard.Web\%(Identity)')"
|
||||
<Copy SourceFiles="@(StageProjectAlteration-ExtraFiles->'$(SrcFolder)\Orchard.Web\%(Identity)')"
|
||||
DestinationFolder="$(StageFolder)\%(RecursiveDir)"/>
|
||||
|
||||
</Target>
|
||||
@ -151,34 +151,34 @@
|
||||
$(MSBuildProjectDirectory)\**\*.patch;
|
||||
$(MSBuildProjectDirectory)\**\*.hg;
|
||||
" />
|
||||
|
||||
|
||||
<Zip-Stage Include="$(StageFolder)\**\*" />
|
||||
|
||||
|
||||
<Zip-Source Include="
|
||||
$(MSBuildProjectDirectory)\lib\**\*;
|
||||
$(MSBuildProjectDirectory)\src\**\*;
|
||||
$(MSBuildProjectDirectory)\*.txt;
|
||||
" Exclude="@(Zip-Exclude)" />
|
||||
|
||||
|
||||
</ItemGroup>
|
||||
|
||||
<MakeDir Directories="$(WebPIFolder);$(SourceFolder)"/>
|
||||
|
||||
<Zip Files="@(Zip-Stage)" WorkingDirectory="$(StageFolder)" ZipFileName="$(WebPIFolder)\Orchard.Web.zip" />
|
||||
<Zip Files="@(Zip-Source)" WorkingDirectory="$(MSBuildProjectDirectory)" ZipFileName="$(SourceFolder)\Orchard.Source.zip" />
|
||||
<Zip Files="@(Zip-Stage)" WorkingDirectory="$(StageFolder)" ZipFileName="$(WebPIFolder)\Orchard.Web.zip" />
|
||||
<Zip Files="@(Zip-Source)" WorkingDirectory="$(MSBuildProjectDirectory)" ZipFileName="$(SourceFolder)\Orchard.Source.zip" />
|
||||
</Target>
|
||||
|
||||
<!-- Profiling -->
|
||||
<!-- Profiling -->
|
||||
|
||||
<Target Name="Profiling-Stage">
|
||||
<ItemGroup>
|
||||
<Profiling-Web Include="$(StageFolder)\**\*" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<Copy SourceFiles="@(Profiling-Web)" DestinationFolder="$(ProfilingFolder)\%(RecursiveDir)"/>
|
||||
|
||||
|
||||
</Target>
|
||||
|
||||
|
||||
<Target Name="Profiling-Setup">
|
||||
<Exec Command="$(ProfilingFolder)\bin\Orchard.exe @$(SrcFolder)\Orchard.Profile\profiling-setup-commands.txt" WorkingDirectory="$(ProfilingFolder)"/>
|
||||
</Target>
|
||||
|
Loading…
Reference in New Issue
Block a user