Skip to content

Commit 3a9a14b

Browse files
committed
Revert "Add item for best practices"
This reverts commit 74c0216.
1 parent 59d61fe commit 3a9a14b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/msbuild/msbuild-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ We recommend the following best practices for writing MSBuild scripts:
2424
</MyProperty>
2525
```
2626

27-
- Any custom `.props` files should be simple and single-purpose, and `.props` files should not include other `.props` files. The only exception to this is *Directory.Build.props*. Because property values can be overridden, the value at any time in the process depends on the order in which MSBuild processes a script. It can be difficult to trace why property values have the values they do at various stages in the processing of an MSBuild script, and this practice helps you more easily diagnose such issues.
27+
- In general, avoid wildcards the use of when you select items. Instead, specify files explicitly. This is because in most project types, MSBuild expands wildcards at various times, such as when adding or removing items, which can lead to unexpected behavior. An exception to this is in .NET Core SDK-style projects, which do process wildcards correctly.
2828

2929
## See also
3030

0 commit comments

Comments
 (0)