Build succeeds when using solution->project target passthrough and DependsOn target fails
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 133
Description
```xml
```
Does not result in non-zero exit code when
1. the error is reported from a dependent target
2. building a solution (not the project itself)
3. building on Linux.
### Steps to reproduce
Extract [Repro.zip](https://github.com/Microsoft/msbuild/files/2622284/Repro.zip) to a directory.
On Linux run
```
chmod +x test.sh
./test.sh
```
### Expected behavior
```
Microsoft (R) Build Engine version 15.7.177.53362 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
/mnt/c/Temp/exitcode/ClassLibrary1/ClassLibrary1.csproj(10,5): error : Failure!
Exit code: 1
```
### Actual behavior
```
Microsoft (R) Build Engine version 15.7.177.53362 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
/mnt/c/Temp/exitcode/ClassLibrary1/ClassLibrary1.csproj(10,5): error : Failure!
Exit code: 0
```
### Environment data
OS info:
```
Linux
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.