File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33open Fake
44open Fake.DotNetCli
55
6+ let project = environVarOrDefault " project" " *"
67let buildDir = " ./build/"
78let sourceDir = " ./exercises/"
9+ let projectDirs = buildDir @@ project
810
9- let testFiles = !! ( buildDir @@ " */ *Test.cs" )
10- let allProjects = !! ( buildDir @@ " */ *.csproj" )
11+ let testFiles = !! ( projectDirs @@ " *Test.cs" )
12+ let allProjects = !! ( projectDirs @@ " *.csproj" )
1113let defaultProjects =
12- !! ( buildDir @@ " */* .csproj" ) --
13- ( buildDir @@ " */ DotDsl.csproj" ) --
14- ( buildDir @@ " */ Hangman.csproj" ) --
15- ( buildDir @@ " */ React.csproj" )
14+ !! ( projectDirs @@ " .csproj" ) --
15+ ( projectDirs @@ " DotDsl.csproj" ) --
16+ ( projectDirs @@ " Hangman.csproj" ) --
17+ ( projectDirs @@ " React.csproj" )
1618let refactoringProjects =
17- !! ( buildDir @@ " */ TreeBuilding.csproj" ) ++
18- ( buildDir @@ " */ Ledger.csproj" ) ++
19- ( buildDir @@ " */ Markdown.csproj" )
19+ !! ( projectDirs @@ " TreeBuilding.csproj" ) ++
20+ ( projectDirs @@ " Ledger.csproj" ) ++
21+ ( projectDirs @@ " Markdown.csproj" )
2022
2123let restore project = DotNetCli.Restore ( fun p -> { p with Project = project })
2224let build project = DotNetCli.Build ( fun p -> { p with Project = project })
You can’t perform that action at this time.
0 commit comments