private static void FromTo(NuGetNuSpecValues aFrom, NuGetNuSpecValues aTo) { aTo.ForceAuthors = aFrom.ForceAuthors; aTo.Authors = aFrom.Authors; aTo.ForceCopyright = aFrom.ForceCopyright; aTo.Copyright = aFrom.Copyright; aTo.ForceDescription = aFrom.ForceDescription; aTo.Description = aFrom.Description; aTo.ForceIconUrl = aFrom.ForceIconUrl; aTo.IconUrl = aFrom.IconUrl; aTo.ForceLicenseUrl = aFrom.ForceLicenseUrl; aTo.LicenseUrl = aFrom.LicenseUrl; aTo.ForceOwners = aFrom.ForceOwners; aTo.Owners = aFrom.Owners; aTo.ForceProjectUrl = aFrom.ForceProjectUrl; aTo.ProjectUrl = aFrom.ProjectUrl; aTo.ForceReleaseNotes = aFrom.ForceReleaseNotes; aTo.ReleaseNotes = aFrom.ReleaseNotes; aTo.ForceRequireLicenseAcceptance = aFrom.ForceRequireLicenseAcceptance; aTo.RequireLicenseAcceptance = aFrom.RequireLicenseAcceptance; aTo.ForceSummary = aFrom.ForceSummary; aTo.Summary = aFrom.Summary; aTo.ForceTags = aFrom.ForceTags; aTo.Tags = aFrom.Tags; aTo.ForceTitle = aFrom.ForceTitle; aTo.Title = aFrom.Title; aTo.ForceVersion = aFrom.ForceVersion; aTo.Version = aFrom.Version; }
private void LoadOptionalConfiguration(string aConfigPath) { if (File.Exists(aConfigPath)) { _Configuration = new ConfigurationBuilder() .AddAppConfig(aConfigPath, true, true) .Build(); NuGetNuSpecValues vNuGetNuSpecSettings = _Configuration.Get <NuGetNuSpecValues>(); AppSettings vAppSettingsValues = _Configuration.Get <AppSettings>(); NuGetNuSpecSettings.AssignFrom(vNuGetNuSpecSettings); DotNetNuSpecSettings = _Configuration.Get <DotNetNuSpecValues>(); if (DotNetNuSpecSettings.UseNuGetNuSpecValues) { DotNetNuSpecSettings.AssignFrom(NuGetNuSpecSettings); } AppSettingsValues.AssignFrom(vAppSettingsValues); } }
private static void FromTo(NuGetNuSpecValues aFrom, DotNetNuSpecValues aTo) { aTo.ForceAuthors = aFrom.ForceAuthors; aTo.Authors = aFrom.Authors; aTo.ForceCompany = aFrom.ForceOwners; aTo.Company = aFrom.Owners; aTo.ForceCopyright = aFrom.ForceCopyright; aTo.Copyright = aFrom.Copyright; aTo.ForceDescription = aFrom.ForceDescription; aTo.Description = aFrom.Description; aTo.ForcePackageIconUrl = aFrom.ForceIconUrl; aTo.PackageIconUrl = aFrom.IconUrl; aTo.ForcePackageLicenseUrl = aFrom.ForceLicenseUrl; aTo.PackageLicenseUrl = aFrom.LicenseUrl; aTo.ForcePackageProjectUrl = aFrom.ForceProjectUrl; aTo.PackageProjectUrl = aFrom.ProjectUrl; aTo.ForcePackageReleaseNotes = aFrom.ForceReleaseNotes; aTo.PackageReleaseNotes = aFrom.ReleaseNotes; aTo.ForcePackageTags = aFrom.ForceTags; aTo.PackageTags = aFrom.Tags; aTo.ForcePackageRequireLicenseAcceptance = aFrom.ForceRequireLicenseAcceptance; aTo.PackageRequireLicenseAcceptance = aFrom.RequireLicenseAcceptance; }
public static void AssignTo (this DotNetNuSpecValues aFrom, NuGetNuSpecValues aTo) { FromTo(aFrom, aTo); }
public static void AssignFrom (this NuGetNuSpecValues aTo, DotNetNuSpecValues aFrom) { FromTo(aFrom, aTo); }
public static void AssignTo (this NuGetNuSpecValues aNuGetNuSpecValues, NuGetNuSpecValues aTo) { FromTo(aTo, aNuGetNuSpecValues); }
public static void AssignFrom (this NuGetNuSpecValues aNuGetNuSpecValues, NuGetNuSpecValues aFrom) { FromTo(aFrom, aNuGetNuSpecValues); }