Skip to content

Commit

Permalink
Merge pull request #1343 from bobahml/incorrect-package-version-1342
Browse files Browse the repository at this point in the history
Issue 1342: NugetHelper.fs: GetPackageVersion
  • Loading branch information
forki authored Aug 9, 2016
2 parents e0ff22a + 7344d28 commit 06092e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/FakeLib/NuGet/NugetHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ let GetPackageVersion deploymentsDir package =
if Directory.Exists deploymentsDir |> not then
failwithf "Package %s was not found, because the deployment directory %s doesn't exist." package deploymentsDir
let version =
let dirs = Directory.GetDirectories(deploymentsDir, sprintf "%s*" package)
let dirs = Directory.GetDirectories(deploymentsDir, sprintf "%s.*" package)
if Seq.isEmpty dirs then failwithf "Package %s was not found." package
let folder = Seq.head dirs
let index = folder.LastIndexOf package + package.Length + 1
Expand Down

0 comments on commit 06092e9

Please sign in to comment.