private void EnsurePackageData() { if (_packageTemplateData != null) { return; } _packageTemplateData = GetPackageTemplateData(); }
protected virtual PackageTemplateData GetPackageTemplateData() { var data = new PackageTemplateData { RosName = Package.PackageInfo.Name, Version = Package.PackageInfo.Version, Name = Package.PackageInfo.Name.ToPascalCase(), Namespace = NameMapper.GetNamespace(Package.PackageInfo.Name), Description = Package.PackageInfo.Description, ProjectUrl = Package.PackageInfo.ProjectUrl, RepositoryUrl = Package.PackageInfo.RepositoryUrl, Authors = Package.PackageInfo.Authors, }; return(data); }