Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes the MSB3073 error code.
Message text
MSB3073: The command 'value' exited with code 'value'.
Description
This diagnostic code is emitted when an executable exited with an error code, or emitted an error in the expected format. Specifically, the MSBuild Exec task encountered an error condition in the executable it was trying to run.
The meaning of the return code is specific to the executable that was being run. Refer to the documentation for the tool for the interpretation of a non-zero exit code. If you get this error and the exit code is zero, it's because the output contained text that was interpreted as an error because the Exec
task was invoked with the CustomErrorRegularExpression
set to a string that matched something in the tool's output.
Resolution
Look to the output of the command to determine the root cause of the failure. If logging was enabled in the build, the output might be written to the build log.
To diagnose the error, first enable a diagnostic log (use the -verbosity:diag
command-line switch), and check the MSBuild log file with the full diagnostics output. For bigger output logs on large projects, consider using the binary log (-bl
command-line switch) and the MSBuild Structured Log Viewer to view the output more easily.
You can also set the MSBuildDebugEngine
environment variable to 1 to get all possible logs. See Building MSBuild for the .NET Framework - Logs.
It might be helpful to reproduce the error in isolation. Try running the tool separately with the same inputs and command-line arguments that MSBuild used in the build. If symbols are available and you have a Debug build of the tool, you can try attaching a debugger to the tool and debug the tool itself to see what the problem is.
Applies to
All versions of MSBuild