-
Notifications
You must be signed in to change notification settings - Fork 585
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
SetAssemblyVersion is too verbose #2661
Comments
@pchinery I'm not aware of a method called If I understand correctly, what you are doing through your build process is like how the FAKE build process is set up. We have a target called
Thanks |
Sorry, I had copied the name of an internal helper method, I meant If I understand your snippet right, that's the "next step", meaning after all |
So |
I did not mean it as a direct quote, that's the line: That's triggered for each attribute in each file that is being updated and it completely clutters our build output (especially on the final target where we revert the temporary changes). For now, we are detaching the Console during the revert, but that's not really a good solution |
Ok, I see now. Sorry for all the trouble until I understand what is the issue! But yes if the output is cluttering the build we can condition the trace messages to verbose mode only. Please feel free to provide a PR for it. Thanks |
Thanks, I will try to spend some time on that during the next days and will open a PR when I have something to show/discuss |
Assembly resolver improved with latest 6.1.1 |
Description
Right now,
AssemblyInfo.setAssemblyVersion
is very verbose, which makes the logs hard to read.Our build process is like this:
AssemblyInfo.cs
files at the beginning of the build with the current version number (and additionally the current commit ID)AssemblyInfo.cs
filesAs
AssemblyInfo.setAssemblyVersion
writes one trace message perAssemblyInfo
and one more line per attribute that was not changed, this can get really messy. When actually searching a problem, we have to scroll up a lot.Suggested behavior
To reduce the load, I would suggest to modify the "alright, nothing has changed here" messages and either remove them completely or only show them in verbose mode. This will reduce the number of trace lines instantly.
As a more enhanced solution, it might be desirable to completely disable these trace messages during clean up, but that would probably require changes that will affect of lot of use-cases.
I'm happy to provide a PR, but I wanted to discuss this first. Is this even a good idea? What would be the favored approach?
The text was updated successfully, but these errors were encountered: