Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default location for MSBuild logs?

I am using Visual Studio Express 2012. Where is the location of the log file? I have searched in the folder where my solution and projects are stored, but cannot find any .log file.

This is the configuration for logging:

enter image description here

like image 627
Hanxue Avatar asked Jul 17 '12 16:07

Hanxue


People also ask

Where are build logs stored?

Storing build logs in the default Google-created bucket By default, Cloud Build stores your build logs in a Google-created Cloud Storage bucket.

Where is the MSBuild file?

With Visual Studio 2022, it's installed under the Visual Studio installation folder. For a typical default installation on Windows 10, MSBuild.exe is under the installation folder in MSBuild\Current\Bin.

Where are Visual Studio logs saved?

The log file will be found in %AppData%\Microsoft\VisualStudio\ , under a subdirectory (*). You can press Start+R and enter the path into the window. E-mail us your ActivityLog. xml file so we can try to find possible issues.

What is a build log?

A build log is an enhanced console output of a build. It is represented by a structured list of the events which took place during the build. Generally, it includes entries on TeamCity-performed actions and the output of the processes launched during the build.


2 Answers

Log file from Visual Studio is only supported for C++ projects. You just have to work with the output window for others.

See this similar thread: VS2010: minimal build log in output and detailed log in log file

And in case you happen to do this for a C++ project, the file is at:

... build log in the intermediate files directory ... The path and name of the build log is represented by the MSBuild macro expression, $(IntDir)\$(MSBuildProjectName).log.

like image 187
Dmitry Pavlov Avatar answered Sep 29 '22 04:09

Dmitry Pavlov


Use build output instead of logging to file. Instead of copy/paste, simply click somewhere in the output and press CTRL + S to save. Visual Studio will prompt you for a location (tested with Visual Studio 2017, but I'm assuming this works in earlier versions too).

enter image description here

like image 26
Dan Gøran Lunde Avatar answered Sep 29 '22 05:09

Dan Gøran Lunde