-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Bug]: Building inline task invocation succeeded with an error #10389
Comments
good bug! |
This is a consequence of the Log.LogError("Catastrophic failure");
return true; // "Task succeeded" And unfortunately that's basically what we do for the fragment type of inline code (add We should consider adopting the preferred pattern ( msbuild/src/Tasks/CodeTaskFactory.cs Lines 390 to 401 in 85d1d66
and also in msbuild/src/Tasks/RoslynCodeTaskFactory/RoslynCodeTaskFactory.cs Lines 226 to 239 in 85d1d66
|
Issue Description
Building this project that invokes an inline task got strange behavior. The output log displayed the successful task execution as
an error, while build succeeded with 1 error.
The build log is:
Steps to Reproduce
Open Developer Command Prompt and use msbuild.exe to build the project.
Expected Behavior
In the build log task execution is displayed as normal message. Build succeeded without errors.
Actual Behavior
In the build log task execution is displayed as error. Build succeeded with 1 error.
Analysis
No response
Versions & Configurations
No response
The text was updated successfully, but these errors were encountered: