Skip to content

Commit 2fc7f19

Browse files
authored
Fix indentation and code formatting
1 parent 6f25855 commit 2fc7f19

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/msbuild/how-to-ignore-errors-in-tasks.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,17 @@ The `ContinueOnError` attribute can contain one of the following values:
2424

2525
- **ErrorAndStop** or **false** (default). When a task fails, the remaining tasks in the `Target` element and the build aren't executed, and the entire `Target` element and the build is considered to have failed.
2626

27-
Versions of the .NET Framework before 4.5 supported only the `true` and `false` values.
27+
Versions of the .NET Framework before 4.5 supported only the `true` and `false` values.
2828

29-
The default value of `ContinueOnError` is `ErrorAndStop`. If you set the attribute to `ErrorAndStop`, you make the behavior explicit to anyone who reads the project file.
29+
The default value of `ContinueOnError` is `ErrorAndStop`. If you set the attribute to `ErrorAndStop`, you make the behavior explicit to anyone who reads the project file.
3030

3131
#### To ignore an error in a task
3232

33-
- Use the `ContinueOnError` attribute of the task. For example:
33+
Use the `ContinueOnError` attribute of the task. For example:
3434

35-
`<Delete Files="@(Files)" ContinueOnError="WarnAndContinue"/>`
35+
```c#
36+
<Delete Files="@(Files)" ContinueOnError="WarnAndContinue"/>
37+
```
3638

3739
## Example
3840
The following code example illustrates that the `Build` target still runs and the build is considered a success, even if the `Delete` task fails.

0 commit comments

Comments
 (0)