Thursday, November 5, 2009

MSBuild error MSB3491: Could not write lines to file “D:\Builds\*\*.sln.Release.vsprops”.

Today I got the following error message from MSBuild. I've seen it before but I could not remember the problem.

Build FAILED.

“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 some solutions where moved in the source control repository. After correcting the file location, everything was up and running again.

A more descriptive error message could have been usefull.

No comments: