-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNCrawler.proj
76 lines (68 loc) · 4.81 KB
/
NCrawler.proj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
<PropertyGroup>
<BuildConfig>Release</BuildConfig>
<BinariesFolder>$(MSBuildProjectDirectory)\Binaries</BinariesFolder>
<MergedOutputPath>$(MSBuildProjectDirectory)\Binaries\Merged</MergedOutputPath>
<NCrawlMergedOutputPath>$(MSBuildProjectDirectory)\Binaries\NCrawl</NCrawlMergedOutputPath>
<ILMerge>$(MSBuildProjectDirectory)\Repository\ILMerge\ILMerge.exe</ILMerge>
</PropertyGroup>
<Target Name="Clean">
<MSBuild Projects="NCrawler.sln" StopOnFirstFailure="true" Properties="Configuration=Release" BuildInParallel="true" Targets="Clean"/>
<RemoveDir Directories="$(BinariesFolder)" />
</Target>
<Target Name="Build">
<MSBuild Projects="NCrawler.sln" StopOnFirstFailure="true" Properties="Configuration=Release" BuildInParallel="true" Targets="Rebuild" />
</Target>
<Target Name="CopyToBinFolder">
<ItemGroup>
<BinaryFiles Include="$(MSBuildProjectDirectory)\NCrawler\bin\$(BuildConfig)\*.*" />
<BinaryFiles Include="$(MSBuildProjectDirectory)\NCrawler.HtmlProcessor\bin\$(BuildConfig)\*.*" />
<BinaryFiles Include="$(MSBuildProjectDirectory)\NCrawler.IFilterProcessor\bin\$(BuildConfig)\*.*" />
<BinaryFiles Include="$(MSBuildProjectDirectory)\NCrawler.iTextSharpProcessor\bin\$(BuildConfig)\*.*" />
<BinaryFiles Include="$(MSBuildProjectDirectory)\NCrawler.LanguageDetection.Google\bin\$(BuildConfig)\*.*" />
</ItemGroup>
<Copy SourceFiles="@(BinaryFiles)"
DestinationFolder="$(BinariesFolder)"
ContinueOnError="false" />
<ItemGroup>
<DemoBinaryFiles
Include="$(MSBuildProjectDirectory)\NCrawler.Demo\bin\Release\*.*"
Exclude="$(MSBuildProjectDirectory)\NCrawler.Demo\bin\Release\*.vshost.exe*" />
</ItemGroup>
<Copy SourceFiles="@(DemoBinaryFiles)"
DestinationFolder="$(BinariesFolder)\Demo"
ContinueOnError="false" />
</Target>
<Target Name="Merge">
<ItemGroup>
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler\bin\$(BuildConfig)\NCrawler.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler\bin\$(BuildConfig)\Autofac.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.IsolatedStorageServices\bin\$(BuildConfig)\NCrawler.IsolatedStorageServices.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.DbServices\bin\$(BuildConfig)\NCrawler.DbServices.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.HtmlProcessor\bin\$(BuildConfig)\NCrawler.HtmlProcessor.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.HtmlProcessor\bin\$(BuildConfig)\HtmlAgilityPack.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.IFilterProcessor\bin\$(BuildConfig)\NCrawler.IFilterProcessor.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.IFilterProcessor\bin\$(BuildConfig)\EPocalipse.IFilter.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.LanguageDetection.Google\bin\$(BuildConfig)\NCrawler.LanguageDetection.Google.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.MP3Processor\bin\$(BuildConfig)\NCrawler.MP3Processor.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.MP3Processor\bin\$(BuildConfig)\UltraID3Lib.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.FileStorageServices\bin\$(BuildConfig)\NCrawler.FileStorageServices.dll" />
<MergeAsm Include="$(MSBuildProjectDirectory)\NCrawler.SitemapProcessor\bin\$(BuildConfig)\NCrawler.SitemapProcessor.dll" />
</ItemGroup>
<MakeDir Directories="$(MergedOutputPath)" Condition="!EXISTS($(MergedOutputPath))"/>
<Message Text="Merging: @(MergeAsm->'%(Filename)', ' and ') into $(MergedOutputPath)\NCrawler.dll" />
<Exec Command=""$(ILMerge)" /ndebug /targetplatform:v4,"$(MSBuildBinPath)" /target:library /out:"$(MergedOutputPath)\NCrawler.dll" @(MergeAsm->'"%(FullPath)"', ' ') " />
</Target>
<Target Name="MergeNCrawlerConsole">
<ItemGroup>
<MergeAsmNCrawlConsole Include="$(MSBuildProjectDirectory)\NCrawler.Console\bin\$(BuildConfig)\NCrawl.exe" />
<MergeAsmNCrawlConsole Include="$(MSBuildProjectDirectory)\NCrawler.Console\bin\$(BuildConfig)\*.dll" />
</ItemGroup>
<MakeDir Directories="$(NCrawlMergedOutputPath)" Condition="!EXISTS($(NCrawlMergedOutputPath))"/>
<Message Text="Merging: @(MergeAsmNCrawlConsole->'%(Filename)%(Extension)', ' and ') into $(NCrawlMergedOutputPath)\NCrawl.exe" />
<Exec Command=""$(ILMerge)" /ndebug /targetplatform:v4,"$(MSBuildBinPath)" /target:exe /out:"$(NCrawlMergedOutputPath)\NCrawl.exe" @(MergeAsmNCrawlConsole->'"%(FullPath)"', ' ') " />
<Copy SourceFiles="$(MSBuildProjectDirectory)\NCrawler.Console\bin\$(BuildConfig)\NCrawl.exe.config"
DestinationFolder="$(NCrawlMergedOutputPath)"
ContinueOnError="false" />
</Target>
</Project>