protected void ReadImports() { var imports = Project.GetTaskItems(ItemNames.Import); if (imports != null) { AddIfNotNullOrWhiteSpace("imports", string.Join(",", imports.Select(item => item.ItemSpec.Trim()))); } }
protected void ReadImports() { var imports = Project.GetTaskItems(ItemNames.Import); if (imports == null) { return; } // In case of import alias clause in the form of `aliasname = namespace`, // we want to add quotes to that single clause only instead of the entire imports. AddIfNotNullOrWhiteSpace("imports", string.Join(",", imports.Select(ReadImportItem)), addQuoteIfValueContainsWhitespace: false);