diff --git a/src/app/FakeLib/NuGet/NugetHelper.fs b/src/app/FakeLib/NuGet/NugetHelper.fs index 8a32c456c2f..9c9410877a1 100644 --- a/src/app/FakeLib/NuGet/NugetHelper.fs +++ b/src/app/FakeLib/NuGet/NugetHelper.fs @@ -171,7 +171,9 @@ let private createNuspecFile parameters nuSpec = if isNullOrEmpty notEncodedText then "" else XText(notEncodedText).ToString() - let toSingleLine (text:string) = text.Replace("\r", "").Replace("\n", "").Replace(" ", " ") + let toSingleLine (text:string) = + if text = null then null + else text.Replace("\r", "").Replace("\n", "").Replace(" ", " ") let replacements = [ "@build.number@", parameters.Version