Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2014-05-14 12:26:13 +0400
committerAtsushi Eno <atsushieno@gmail.com>2014-05-15 18:55:18 +0400
commit2091b968fd7f0ec3484cece3f91a10ae7b7deb52 (patch)
treed7ec1d1b73427dd6adc36d009442a47226bb4540 /mcs/class/Microsoft.Build/Test
parent51034e6056a680060b988926ee6f065e5d3806e4 (diff)
[msbuild] ongoing ITaskItem input parameter handling improvements.
Right now all the input parameters are computed based on string, and any metadata items are simply chopped out when it is passed to a Task. To fix this, we need to replace ExpandString() use with more complicated evaluator that takes ITaskItem into consideration. (It is not complete as of now; evaluation method needs to be replaced and any regressions need to be fixed.)
Diffstat (limited to 'mcs/class/Microsoft.Build/Test')
-rw-r--r--mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectInstanceTest.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectInstanceTest.cs b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectInstanceTest.cs
index d3a7af4a035..1f33a64907f 100644
--- a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectInstanceTest.cs
+++ b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Execution/ProjectInstanceTest.cs
@@ -223,13 +223,12 @@ namespace MonoTests.Microsoft.Build.Execution
[Test]
public void ExpandStringWithMetadata ()
{
- string thisAssembly = new Uri (GetType ().Assembly.CodeBase).LocalPath;
- string project_xml = string.Format (@"<Project xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>
+ string project_xml = @"<Project xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>
<ItemGroup>
<Foo Include='xxx'><M>x</M></Foo>
<Foo Include='yyy'><M>y</M></Foo>
</ItemGroup>
-</Project>", thisAssembly);
+</Project>";
var xml = XmlReader.Create (new StringReader (project_xml));
var root = ProjectRootElement.Create (xml);
root.FullPath = "ProjectInstanceTest.ExpandStringWithMetadata.proj";