CreateAndCheckGlobalPropertiesTest (mainProject, firstProject, secondProject,
null, null,
- 4, 3, 12,
+ 4, 3, 13,
new string [] {
- "foofoo;barbar;foofoo;barbar: F.Unique: true",
+ "foofoo;barbar: F.Unique: true",
+ "foofoo;barbar: F.Unique: false",
"from_second: F.Unique: unique",
"foofoo;foofoo;from_second: F.Prop1: false",
"barbar;barbar: F.Prop1: bar_false",
Hashtable outputs;
var global_properties = SplitPropertiesToDictionary ();
- Dictionary<string, ITaskItem> projectsByFileName = new Dictionary<string, ITaskItem> ();
Log.LogMessage (MessageImportance.Low, "Global Properties:");
if (global_properties != null)
}
if (result) {
- // Metadata from the first item for the project file is copied
- ITaskItem first_item;
- if (!projectsByFileName.TryGetValue (filename, out first_item))
- projectsByFileName [filename] = first_item = project;
-
foreach (DictionaryEntry de in outputs) {
ITaskItem [] array = (ITaskItem []) de.Value;
foreach (ITaskItem item in array) {
// copy the metadata from original @project to here
// CopyMetadataTo does _not_ overwrite
- first_item.CopyMetadataTo (new_item);
+ project.CopyMetadataTo (new_item);
outputItems.Add (new_item);