Visual Studio 2013 C # Create output to file

I am using Visual Studio 2013 at work and I want my C # build output to be saved to the file I specified. I found "Tools"> "Options"> "Projects and Solutions"> "Build and Run" which allows me to set build output and expand the scope of the log file, but nothing specifies the path to the build file. I also cannot find such files in folders bin

or obj

.

I also found this article which has instructions for manually copying to the output of a text file. I want some way to automatically write this output to a file if possible.

[Edit] I would like to avoid command line tools (ie I want to build Visual Studio) and I hope to avoid writing a custom log class.


I was putting the screen cache in the options section that I referenced above here .

+3


source to share


2 answers


You need to set the Output path property. Follow these steps:

  • In Solution Explorer, right click on the project and select Properties

  • Select a tab Build

  • Enter the path in Output path:



Output Path

-1


source


I also couldn't find any option in Visual Studio, but you can use msbuild from the console and write the output to a file

msbuild MyProject.proj /t:go /fl /flp:logfile=MyProjectOutput.log;verbosity=diagnostic

      



Also see more options here: http://msdn.microsoft.com/en-us/library/ms171470.aspx

+4


source







All Articles