anchor.diff:                                  let versionString = 
                                     let s = reg.Groups.["version"].Value.Trim()
                                     if s.Contains("CURRENTVERSION") then
  -                                    s.Replace("CURRENTVERSION",currentVersion.Value.ToString())
  +                                    match currentVersion with
  +                                    | Some v -> s.Replace("CURRENTVERSION",v.ToString())
  +                                    | None -> failwithf "The template file %s contains the placeholder CURRENTVERSION, but no version was given." fileName
                                     else s
                                   DependenciesFileParser.parseVersionRequirement versionString
                              id', versionRequirement))
  
positive.code:                 | Choice2Of2 f -> failP file f
              sr.Dispose()
              let! type' = parsePackageConfigType file map
              match type' with
              | ProjectType -> 
                  let core : ProjectCoreInfo = 
  
negative.code:         |> Option.map List.ofSeq
          |> fun x -> defaultArg x []
      
      let private getOptionalInfo (fileName, map : Map<string, string>, currentVersion) = 
          let get (n : string) = Map.tryFind (n.ToLowerInvariant()) map
  
          let title = get "title"
  