[xbuild] Fix #40094, part 1/2: SolutionParser: Emit `AbsolutePath="..."`
authorAnkit Jain <ankit.jain@xamarin.com>
Wed, 6 Apr 2016 18:11:17 +0000 (14:11 -0400)
committerAnkit Jain <ankit.jain@xamarin.com>
Wed, 6 Apr 2016 18:39:52 +0000 (14:39 -0400)
.. attribute for CurrentSolutionConfigurationContents .

   <CurrentSolutionConfigurationContents>
         <SolutionConfiguration xmlns="">
   <ProjectConfiguration Project="{82323650-6C2A-4FAC-91C6-A715C2FE9CB2}" AbsolutePath="/Users/ankit/test/msbuild/bug40094/App1/App1\App1\App1.csproj">
   Release|AnyCPU
   </ProjectConfiguration>
   ...

Related to fix for bxc #40094

mcs/tools/xbuild/SolutionParser.cs

index bf44c515970b467421ac6bcb6a1a6df5874fd203..44ac70d2f963f328fd8bb2ad840912446e262454 100644 (file)
@@ -510,8 +510,8 @@ namespace Mono.XBuild.CommandLine {
                                if (solutionTarget.Configuration == targetInfo.Key.Configuration &&
                                                solutionTarget.Platform == targetInfo.Key.Platform) {
                                        solutionConfigurationContents.AppendFormat (
-                                                       "<ProjectConfiguration Project=\"{0}\">{1}|{2}</ProjectConfiguration>",
-                                       guid.ToString ("B").ToUpper (), targetInfo.Value.Configuration, targetInfo.Value.Platform);
+                                                       "<ProjectConfiguration Project=\"{0}\" AbsolutePath=\"{1}\">{2}|{3}</ProjectConfiguration>",
+                                                       guid.ToString ("B").ToUpper (), projectInfo.FileName, targetInfo.Value.Configuration, targetInfo.Value.Platform);
                                }
                        }
                }