diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2014-01-31 12:34:30 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2014-02-20 13:23:01 +0400 |
commit | 25310c55618082daba27f94af8149e0221d8abf8 (patch) | |
tree | 415ad0fbaf1c73beba4949e16f540cf9ef59872d /mcs/class/Microsoft.Build/Test | |
parent | ce374a5817c909f67e1667d03d167ae7b383200b (diff) |
Now our MS.Build.dll behaves like MS.Build.Engine.dll, replace \ with / at expansion time for everything.
Some MSBuild targets premises \ to work just like a path separator, and they
cannot be logically distinguished from any possible "normal" use of '\'.
(Except for escaped strings, which is why this change replaces \ with / after
expanding strings.)
I have added another override for NormalizeFilePath() and rather renamed old
one that works as file lookup, but there is no obvious difference in use.
They may be unified later to bring less confusion.
Diffstat (limited to 'mcs/class/Microsoft.Build/Test')
-rw-r--r-- | mcs/class/Microsoft.Build/Test/Microsoft.Build.Evaluation/ProjectTest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Evaluation/ProjectTest.cs b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Evaluation/ProjectTest.cs index bfbcf8bdf6b..0b0683f1973 100644 --- a/mcs/class/Microsoft.Build/Test/Microsoft.Build.Evaluation/ProjectTest.cs +++ b/mcs/class/Microsoft.Build/Test/Microsoft.Build.Evaluation/ProjectTest.cs @@ -222,7 +222,7 @@ namespace MonoTests.Microsoft.Build.Evaluation var xml = XmlReader.Create (new StringReader (project_xml)); var root = ProjectRootElement.Create (xml); var proj = new Project (root); - Assert.AreEqual ("obj\\", proj.GetPropertyValue ("BaseIntermediateOutputPath"), "#1"); + Assert.AreEqual ("obj" + Path.DirectorySeparatorChar, proj.GetPropertyValue ("BaseIntermediateOutputPath"), "#1"); } [Test] |