File tree 2 files changed +19
-3
lines changed
2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ if not exist build\tools\FAKE\tools\Fake.exe (
12
12
" build\tools\nuget\nuget.exe" " install" " FAKE" " -OutputDirectory" " build\tools" " -ExcludeVersion" " -Prerelease"
13
13
)
14
14
15
- " build\tools\nuget\nuget.exe" " install" " gitlink" " -OutputDirectory" " build\tools" " -ExcludeVersion" " -Prerelease"
15
+ if not exist build\tools\gitlink\lib\net45\gitlink.exe (
16
+ ECHO Local node not found.. Installing..
17
+ " build\tools\nuget\nuget.exe" " install" " gitlink" " -OutputDirectory" " build\tools" " -ExcludeVersion" " -Prerelease"
18
+ )
16
19
17
20
REM we need nunit-console to run our tests
18
21
if not exist build\tools\NUnit.Runners\tools\nunit-console.exe (
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ Target "Clean" (fun _ ->
20
20
CleanDir buildDir
21
21
)
22
22
23
+ let gitLink = fun _ ->
24
+ let exe = " build/tools/gitlink/lib/net45/GitLink.exe"
25
+ ExecProcess( fun p ->
26
+ p.FileName <- exe
27
+ p.Arguments <- sprintf @" . -u https://github.com/elasticsearch/elasticsearch-net -b develop"
28
+ ) ( TimeSpan.FromMinutes 5.0 ) |> ignore
29
+
23
30
Target " BuildApp" ( fun _ ->
24
31
let binDirs = !! " src/**/bin/**"
25
32
|> Seq.map DirectoryName
@@ -34,10 +41,16 @@ Target "BuildApp" (fun _ ->
34
41
( " PreBuildEvent" , " echo" );
35
42
]
36
43
37
- //Compile each csproj and output it seperately in build/output/PROJECTNAME
44
+ MSBuild null " Rebuild" msbuildProperties ( seq { yield " src/Elasticsearch.sln" })
45
+ if not isMono then gitLink()
46
+
47
+ //moves all the release builds to build/output/PROJECTNAME
38
48
!! " src/**/*.csproj"
39
49
|> Seq.map( fun f -> ( f, buildDir + directoryInfo( f) .Name.Replace( " .csproj" , " " )))
40
- |> Seq.iter( fun ( f , d ) -> MSBuild d " Build" msbuildProperties ( seq { yield f }) |> ignore)
50
+ |> Seq.iter( fun ( f , d ) ->
51
+ CreateDir d
52
+ CopyDir d ( directoryInfo( f) .Parent.FullName + @" /bin/Release" ) allFiles
53
+ )
41
54
42
55
//Scan for xml docs and patch them to replace <inheritdoc /> with the documentation
43
56
//from their interfaces
You can’t perform that action at this time.
0 commit comments