private ServiceVersionInformation CreateVersionInfo(NuGetService service) { var asmName = service.GetType().Assembly.GetName(); var asmInfo = service.GetType().GetAssemblyInfo(); return(new ServiceVersionInformation() { Version = asmInfo.SemanticVersion, Branch = asmInfo.BuildBranch, Commit = asmInfo.BuildCommit, BuildDateUtc = asmInfo.BuildDate.UtcDateTime }); }