2

I have 2 projects in my solution i want the build log of both of them to be common file.

But on specifying it as a common file the build log of the first project doesn't get appended by the build log of the second file instead it only contains build log of second project.

Is there any way to make it get append other then running a batch file in the post built event to copy contents of two log files in single file

manu_dilip_shah
  • 880
  • 14
  • 32

1 Answers1

0

Use the /fileLoggerParameters (Short form: /flp) with the Append parameter. E.g.:

msbuild your.sln /flp:LogFile=MyLog.log;Append
KMoraz
  • 14,004
  • 3
  • 49
  • 82
  • msbuild need to be done from command line right.Is there any option without using command line.Thanks for the response.... – manu_dilip_shah Mar 25 '12 at 10:08
  • I guess not. Outside Visual Studio you need a build server like TFS or similar to pass arguments. But for client side running from command line is the most simple option. – KMoraz Mar 25 '12 at 10:26