.NET Framework Developer Center > .NET Development Forums > MSBuild > MSBUILD Error : MSB4115 The "exists" function only accepts a scalar value
Ask a questionAsk a question
 

AnswerMSBUILD Error : MSB4115 The "exists" function only accepts a scalar value

  • Friday, November 06, 2009 12:50 AMstuartweston Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Any ideas for getting around this one:

    (InitializeBuild target) ->
      C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(743,11): error MSB4115: The "exists" function only accepts a scalar value, but its argument "$(SolutionRoot)" evaluates to "C:\B\1\ExpertSuite\VS2010.Libraries.Foundation\Sources;C:\B\1\ExpertSuite\VS2010.Libraries.Foundation\Sources" which is not a scalar value.

    Have looked at :

    http://msdn.microsoft.com/en-us/library/7szfhaft%28VS.100%29.aspx

     

    From the link above the condition used is valid and Exists should accept a String. So the target in Microsoft.TeamFoundation.Build.Targets should be valid. But its reporting an error that Exists only accepts a scalar value. This condition is used through out Microsoft.TeamFoundation.Build.Targets.

Answers

All Replies