For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > January 2006 > Build log with non -VC projects?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Build log with non -VC projects?
batvanio@gmail.com

2006-01-30, 9:57 pm

Hi,

I was trying to find a way to have the build log saved in a file for my
C# projects, similar to the .plg (or buildlog.xml) files for the C++
projects in Visual Studio(see Tools - Options - Projects and Solutions
- VC++ Project Settings - Build Log). I searched all the VS options,
and all the project options but did not find anything, I have even
tried the command line MSBuild.
The only way to do it now is to go to the Ouptput window and select all
and copy (or File-SaveAs) but this is not quite automatic. If we want
to build an anutomated build system, we need the build log files saved
somewhere and at least for now I don't see how to do this.

Any input is greatly appreciated.

Ivan

Sayed Ibrahim Hashimi

2006-01-31, 4:08 am

Hi,

You can use the command line msbuild.exe to build your project and save a
log to a file at the same time. MSBuild is the utility that Visual Studio
itself uses to build your C# projects so you don't have to be worried about
inconsistencies. To do this open the Visual Studio 2005 Command Prompt (from
Visual Studio Tools in start menu). Change directories to the
project/solution that you want to build and type in:
>msbuild.exe PROJECT_FILENAME

This is to build your project from the command line, to also create a log
you can:
>msbuild.exe PROJECT_FILENAME /l:FileLogger,Microsoft.Build.Engine;verbosity=detailed,logfile=mylog.log


If you need there is more detailed information at my blog: <a
href="http://www.sedodream.com">www.sedodream.com</a>

Hope this helps,
Sayed Ibrahim Hashimi
www.sedodream.com

"batvanio@gmail.com" wrote:

> Hi,
>
> I was trying to find a way to have the build log saved in a file for my
> C# projects, similar to the .plg (or buildlog.xml) files for the C++
> projects in Visual Studio(see Tools - Options - Projects and Solutions
> - VC++ Project Settings - Build Log). I searched all the VS options,
> and all the project options but did not find anything, I have even
> tried the command line MSBuild.
> The only way to do it now is to go to the Ouptput window and select all
> and copy (or File-SaveAs) but this is not quite automatic. If we want
> to build an anutomated build system, we need the build log files saved
> somewhere and at least for now I don't see how to do this.
>
> Any input is greatly appreciated.
>
> Ivan
>
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com