示例#1
0
 public void AssignByAssemblyInfo(ProjectAssemblyInfo assemblyInfo)
 {
     if (Id.IsEmptyOrPlaceHolder() && !string.IsNullOrWhiteSpace(assemblyInfo.Title))
     {
         Id = assemblyInfo.Title;
     }
     if (Title.IsEmptyOrPlaceHolder() && !string.IsNullOrWhiteSpace(assemblyInfo.Title))
     {
         Title = assemblyInfo.Title;
     }
     if (Authors.IsEmptyOrPlaceHolder() && !string.IsNullOrWhiteSpace(assemblyInfo.Company))
     {
         Authors = assemblyInfo.Company;
     }
     if (Owners.IsEmptyOrPlaceHolder() && !string.IsNullOrWhiteSpace(assemblyInfo.Company))
     {
         Owners = assemblyInfo.Company;
     }
     if (Description.IsEmptyOrPlaceHolder() && !string.IsNullOrWhiteSpace(assemblyInfo.Description))
     {
         Description = assemblyInfo.Description;
     }
 }