error MSB3491: Could not write lines to file (Solution).(Configuration).vsprops


Just got this error message from MSBuild. I’ve gotten it before, but I couldn’t remember what the problem was.

Build FAILED.

“D:\Builds\*\BuildType\TFSBuild.proj” (EndToEndIteration target) (1) ->
“D:\Builds\*\BuildType\TFSBuild.proj” (CoreCompile target) (1:2) ->
“D:\Builds\*\BuildType\TFSBuild.proj” (CompileConfiguration target) (1:3) ->
“D:\Builds\*\BuildType\TFSBuild.proj” (CompileSolution target) (1:5) ->
(CoreCompileSolution target) ->
C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(978,5): error MSB3491: Could not write lines to file “D:\Builds\*\*.sln.Release.vsprops”. Could not find a part of the path ‘D:\Builds\*\*.sln.Release.vsprops’.

0 Warning(s)
1 Error(s)

Turns out that I forgot to add the location of the solution I wanted to build to the builds workspace, defined in the build definition.

Bookmark and Share

  1. #1 by Zbigniew Kawalec on December 3, 2009 - 16:38

    Thanks, that helped me a lot.
    My problem was, that I renamed the folder where the solution file was, and the path in the MSBuild was not updated. When I updated it with a correct one, the above problem was solved.

  2. #2 by Jack on January 4, 2010 - 02:40

    Quite useful. After my tfsBuild was updated, I got this problem.

  3. #3 by Leo Swiontek on July 28, 2011 - 15:43

    Thanks Zbigniew! Had the same issue as you where I renamed the folder and forgot to update my TFSBuild.proj file. Once I did that it worked as well. Thanks again!

(will not be published)