This fixes a problem with the "Microsoft.Bcl.Build" NuGet package, which
overrides the "GetTargetPath" target in a custom .targets file and uses
"Returns" instead of "Outputs".
* Expression.cs (ExpressionOptions): New.
Introduce a ExpressionOptions argument to all ConvertTo*
methods. Implement the rule: in evaluation phase, expand
all items completely, but dont expand item refs in properties.
At other times, expand the item refs in the properties.
See comments in Expression.cs, for a full explanation.
* BuildItem.cs: Track api changes.
* BuildItemGroup.cs: Likewise.
* BuildProperty.cs: Track api changes. Handle self-references.
* BuildTask.cs: Track api changes.
* IReference.cs: Add ExpressionOptions param.
* ItemReference.cs: Track api changes.
* PropertyReference.cs: Likewise.
* MetadataReference.cs: Likewise.
* ExpressionCollection.cs: Track api changes. Add support for
converting all primitive types and DateTime, instead of a fixed
few.
* Project.cs (GetMetadataBatched): Use the evaluated metadata.
* TaskBatchingImpl.cs: Handle the case when batching is required,
but no items are available.
* TaskEngine.cs: Throw on unsupported types. Correctly handle
properties in case of empty values.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* BuildItemTest.cs (TestSetMetadata5a): New.
* ProjectTest.cs: Add tests for different property types
with required attribute. Also, check the values - null or
empty array.
* TestTasks.cs: Add new tasks for above.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs: Add new tasks for different property types
with required attribute. Also, emit whether the value was
null or a zero length array.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs: Add tests for property/item evaluation.
svn path=/trunk/mcs/; revision=140911
* TaskDatabase.cs (RegisterTask): Search for class by name
if task was not found using GetType (which uses namespace).
svn path=/trunk/mcs/; revision=130305
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
Lazily load UsingTask tasks.
* UsingTask.cs (Evaluate): Register 'this' with task database,
but don't load it yet. Register only if condition evaluates to true.
Move the load logic to ..
(Load): .. here. Register with the specified task database.
* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
in a table keyed by task name, but don't load it yet.
(GetTypeFromClassName): Try to load UsingTask if task is not already
loaded. Move loading logic to ..
(GetTypeFromClassNameInternal): .. here.
(CopyTasks): Copy the usingTasks table also.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
(TestAssemblyNameOrAssemblyFileConditionFalse): New.
(TestDuplicate1): New.
* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
use that.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (Another.SameTask): New.
(Other.SameTask): New.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
* TaskBatchingTest.cs: .. here. Track api change.
svn path=/trunk/mcs/; revision=127830
* TaskEngine.cs (GetObjectFromString): Empty value is allowed only for
arrays.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestRequiredTask_*): New.
(TestBatchedMetadataRef5): New.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (RequiredTestTask): Rename to ..
(RequiredTestTask_TaskItems): .. this.
(RequiredTestTask_*): New types.
svn path=/trunk/mcs/; revision=125076
* BuildItem.cs (child_items): Change type from BuildItemGroup to
List<BuildItem>.
(HasParent): Rename to ..
(HasParentItem): .. this.
(ParentItemGroup): Add setter.
* BuildItemGroup.cs (.ctor): Add overload with @project param.
(AddNewItem):
(AddItem): Correctly set the ParentItemGroup for new build items.
(ParentProject): Add setter.
* Project.cs: Set the project for new BuildItemGroup instances.
* TaskEngine.cs (PublishItemGroup): Likewise.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* BuildItemTest.cs (TestBuildItemTransform): New.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (BatchingTestTask.TaskItemsOutput): New.
svn path=/trunk/mcs/; revision=124840
* MetadataReference.cs (BuildItemGroupToITaskItems): Return unique
metadata values for unqualified references.
(BuildItemGroupToITaskItemArray): Rename to ..
(BuildItemGroupToITaskItems): .. this.
(HasTaskItem): New.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestBatchedMetadataRef[23]): Modify to check for
multiple items with same metadata value, incase of unqualified metadata
references.
Track changes in BatchingTestTask.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (BatchingTestTask): Add specific properties
for string and string[].
svn path=/trunk/mcs/; revision=122246
2007-01-08 Marek Sieradzki <[email protected]>
* ImportTest.cs: Added test for project importing another project
importing another project.
In Microsoft.Build.BuildEngine:
2007-01-08 Marek Sieradzki <[email protected]>
* Import.cs (GetFullPath): Avoid exceptions from Path.GetDirectoryName
and prepend relative directory of importing project to full path of
imported project.
svn path=/trunk/mcs/; revision=70648
2006-12-12 Marek Sieradzki <[email protected]>
* ImportTest.cs: Added test for IsImported on imported BuildItemGroup.
In Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
2006-12-12 Marek Sieradzki <[email protected]>
* BuildItemGroup.cs (ctor): Add reference to ImportedProject from
which item group is imported.
* BuildItem.cs, Project.cs: Use new BuildItemGroup.ctor ().
svn path=/trunk/mcs/; revision=69374
* UsingTaskCollectionTest.cs, UsingTaskTest.cs: Updated names.
* ProjectTest.cs: Moved most of the old tests to various/.
* Consts.cs: Added.
svn path=/trunk/mcs/; revision=61956
* BuildPropertyGroupTest.cs: Added some tests.
* UsingTaskCollectionTest.cs: Added very simple test.
* UsingTaskTest.cs: Added test that's loading SimpleTask.dll task from
Test/resources/. Test/resources/SimpleTask.cs should be compiled
before running tests. I need to find out how to add it to Makefile.
svn path=/trunk/mcs/; revision=61714