-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the ability to output a binary log from MSBuild. #3626
Added the ability to output a binary log from MSBuild. #3626
Conversation
Hi! Thanks for taking this into account. I would consider passing the output filename (https://github.com/Microsoft/msbuild/blob/master/documentation/wiki/Binary-Log.md#creating-a-binary-log-during-a-build) in the param
Also, it should be conditionally added to MSBuild >=15.3, whick is the first version to support it. |
All good suggestions! I'll try to update this tonight. |
Sorry, in haste I clicked the wrong button. |
What sort of behaviour is appropriate if the version does not support the binary logging feature? It's not fatal but do we still want the build to be completed? Should we warn and carry on or warn and fail? Is there a mechanism in place already to get the msbuild version we're currently using? |
…uckielordie/conan into feature/msbuild_binary_logging
I'm not sure. I think that this feature won't be enabled by default in a recipe, so you are going to use it when you are working on a recipe: you will activate it explicitly, look for that file, and use it for debugging. If this is the use case, I will raise.
Other tools like CMake or SVN are adding an staticmethod called conan/conans/client/build/cmake.py Line 329 in acd821c
|
@luckielordie, we need some changes in this PR to make it pass the test-suite. And also, we need Matthew Lord to sign the CLA... can you tell him? it looks like he has no github account 😕 |
That's me, my work email isn't attatched to my github, didn't realise at the time. I keep meaning to come around and fix this whenever I have time. |
Just a kindly reminder... 😇 |
Hi @luckielordie 👋 We are willing to include this PR on the next Conan release. We could work over this same PR if you don't have time, but we need you to sign the CL to add the changes. Please update us and we will proceed accordingly. Thanks! 😄 |
Sorry, let me sort this out on my lunch break. I'll get the CL signed and you're more than welcome to help me on it, I'm so short on time lately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will need a test checking that the log is actually generated with the desired name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But LGTM
* Added the ability to output a binary log from MSBuild. * Added complex parameter for output_binary_log. * Added complex parameter for output_binary_log. * fixes from review * Moved tests, new get_version() with more tests * fix py27 test * build test * review * Remove quotes, make it simpler * revert and fix VS detect * try fix
This is a change that adds the MSBuild binary logging ability referenced by the issue #3625
Closes #3625
Changelog: Feature: Added parameter to the
build()
method of theMSBuild()
build helper to create a binary log.