Open Forgind opened 3 years ago
Attempting to cancel the build...
C:\Users\forgind\Documents\GitHub\msbuild\artifacts\bin\bootstrap\net472\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.C
ore.targets(59,5): warning MSB5021: Terminating the task executable "csc" and its child processes because the build was
canceled. [C:\Users\forgind\Documents\GitHub\OrchardCore\src\OrchardCore.Modules\OrchardCore.Workflows\OrchardCore.Wo
rkflows.csproj]
C:\Users\forgind\Documents\GitHub\msbuild\artifacts\bin\bootstrap\net472\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.C
ore.targets(59,5): error MSB4181: The "Csc" task returned false but did not log an error. [C:\Users\forgind\Documents\
GitHub\OrchardCore\src\OrchardCore.Modules\OrchardCore.Workflows\OrchardCore.Workflows.csproj]
MSBuild Team Triage: We should consider upgrading the warning in ManagedCompiler that a task was cancelled to an error. Moving to Roslyn.
If you cancel the build during the csc task, it returns false and logs MSB5021, a warning. This triggers MSB4181, a task returned false but did not log an error. It probably shouldn't. To reproduce, build a C# project that will compile for a long time, cancel the build partway through, and observe your errors.