When building VS2003 solutions, we have been logging the output of the action to a variable, that way, if the action fails, the contents of the build can be fired off to the developer so that they can see where the build failed.
We recently changed over to VS2005 and the output generated during a build has dramatically increased...to such an extent that the "Log to Variable" option cannot hold all the information generated.
I was wondering if anyone had any suggestions as to another way to capture all the output from an action (in this case, the "Build VS.Net Solution" action)
Thanks for your post. Sorry to hear you’re having problems.
I’m curious as to what you mean by “cannot hold all the information generated?” A FinalBuilder variable should be able to hold at least 2Gb of output, assuming this much virtual memory is available. What error are you receiving when you try to log to variable?
Thanks for the reply. I’m not really sure what the difference is here. Logging to variable should be happening at a very high level compared to action-specific functionality like the Visual Studio version.
Do you see the output from the action in the actual FinalBuilder log (ie under Build Log?)
I use the “Build VS.NET Solution” action set to VS2005, “Use MSBuild” unchecked, and it works fine. My solution has 40 projects, and the resulting log is around 82KB.
Well, I've done a little more testing. (brand new project using FB5 v5.5.0.518)
Seems the action logs properly when using the "Build VS.Net Solution" most of the time. If I change the Configuration to "Release|Any CPU" or "Release|Mixed Platforms" we no longer get the log saved to the variable. "Release|.Net" works though....
Same results if using Debug mode, with or without the use of MSBuild.
In all cases, the solution compile log displays in the "Build Log" tab and shows up in the Build History...
I can’t explain this offhand. Could you please send us your FinalBuilder project and log files (.fbp5/.fbz5 and .fbl5) so we can take a look at it? Send them to support at finalbuilder dot com.
For future reference, Eric sent me the log and we uncovered the issue.
The variable that the action was logging to was set to “Make Available as Environment Variable.” This means that the variable is stored as a Windows Environment Variable, not a FinalBuilder variable. The maximum length for these is 32,767 characters. If you attempt to set one to a larger string, Windows blanks it out entirely.