November 16, 2008

# 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) -> 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.