diff --git a/src/app/FakeLib/NuGet/NugetHelper.fs b/src/app/FakeLib/NuGet/NugetHelper.fs index 13f582f3243..28261f79b30 100644 --- a/src/app/FakeLib/NuGet/NugetHelper.fs +++ b/src/app/FakeLib/NuGet/NugetHelper.fs @@ -116,16 +116,18 @@ let private createNuspecFile parameters nuSpec = |> FullName tracefn "Creating .nuspec file at %s" specFile fi.CopyTo(specFile, true) |> ignore - let getFrameworkGroup (frameworkTags : (string * string) seq) = + + let getFrameworkGroup (frameworkTags : (string * string) seq) = frameworkTags - |> Seq.map - (fun (frameworkVersion, tags) -> sprintf "%s" frameworkVersion tags) + |> Seq.map (fun (frameworkVersion, tags) -> + if isNullOrEmpty frameworkVersion then sprintf "%s" tags + else sprintf "%s" frameworkVersion tags) |> toLines - - let getGroup items toTags = + + let getGroup items toTags = if items = [] then "" else sprintf "%s" (items |> toTags) - + let getReferencesTags references = references |> Seq.map (fun assembly -> sprintf "" assembly)