-
Notifications
You must be signed in to change notification settings - Fork 589
FAKE 4.61.3, MSBuild Helper writes a warning into the error stream on Windows #1573
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
Comments
Actually FAKE prevents to write stuff to stdErr on Build Systems where this fails the build. What is your build system? |
team foundation |
See #1574 for the follow-up on the general problem in this case. |
Ok I'll leave this open as a reminder that a FAKE 4 hotfix might make sense. |
@andreichuk is the 5.0.0-alpha010 release enough for you or do you need a hotfix for some reason? |
I disabled "error on std error writes" then. i'll try FAKE 5 when it's at least in beta. thanks for your work! |
I just stumbled over this issue yesterday. Next step would be to migrate to FAKE5. But until then - what is the possibility to disable this error logging? Everything works fine, only this error message breaks the build. Do I have to recompile FAKE locally? Wouldn't it be nice to have an environment setting or something like that to prevent this error log? |
@Slesa What is your build server? Why can't you disable that the build fails for writing in stderr? |
The build server is TFS2017. I think, why I can't disable the failing is: I want to use the logging of the MSBuild mechanism for further analyzing, e.g. investigate the build quality, fill the result mail with correct data about warnings and all that stuff. As soon as I use the build batch build.cmd, this is prevented. The logging queue of msbuild is broken then. So I used the F# launcher of Isaac Abraham - and then the errror log stops the build. I just had a look at the options page, because your questioning made me feel I'd be missing something - and here it is: the option "fail on stderr" can be set, but only in batch mode. So, this is probably the reason why it works at all for me. Maybe Isaac should add that additional option, too? |
/cc @isaacabraham |
We will revisit this for Fake 5. The Trace module is already a lot more flexible in that regard (ie you can register your own Listener and remove the default one). |
Hello,
FAKE 4.61.3 has a regression:
this line in MSBuildHelper.fs & MSBuild.fs
traceFAKE "If you encounter msbuild errors make sure you have copied the required SDKs, see dotnet/msbuild#1697"
writes the warning into the error stream on Windows which in its order causes problems in some build systems.
FAKE 4.61.2 works fine.
The text was updated successfully, but these errors were encountered: