Skip to content

Commit 14a05ab

Browse files
committed
Merge pull request #5 from Danthar/dev
build file cleanup
2 parents 3ae948b + 68a3342 commit 14a05ab

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

build.cmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ src\.nuget\NuGet.exe update -self
2626

2727
src\.nuget\NuGet.exe install FAKE -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages -ExcludeVersion -Version 4.16.1
2828

29-
src\.nuget\NuGet.exe install NUnit.Console -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages\FAKE -ExcludeVersion -Version 3.0.0
30-
3129
if not exist src\packages\SourceLink.Fake\tools\SourceLink.fsx (
3230
src\.nuget\nuget.exe install SourceLink.Fake -ConfigFile src\.nuget\Nuget.Config -OutputDirectory src\packages -ExcludeVersion
3331
)

build.fsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ let updateNugetPackages _ =
126126
| true -> "src/.nuget/NuGet.Dev.Config"
127127
| false -> "src/.nuget/NuGet.Config"
128128

129-
let getPackages project =
130-
match project with
131-
| "Akka.Logger.Serilog" -> ["Akka"]
132-
| _ -> []
133-
134129
for projectFile in !! "src/**/*.csproj" do
135130
printfn "Updating packages for %s" projectFile
136131
let project = Path.GetFileNameWithoutExtension projectFile
@@ -141,10 +136,10 @@ let updateNugetPackages _ =
141136
(fun p ->
142137
{ p with
143138
ConfigFile = Some (getConfigFile isPreRelease)
144-
Prerelease = true
139+
Prerelease = isPreRelease
145140
ToolPath = nugetExe
146141
RepositoryPath = "src/Packages"
147-
Ids = getPackages project
142+
Ids = ["Akka";"Serilog"]
148143
}) config
149144

150145
Target "UpdateDependencies" <| fun _ ->

0 commit comments

Comments
 (0)