Skip to content

Commit c9e0c03

Browse files
authored
Update msbuild-props.md
1 parent 5d01b47 commit c9e0c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core/project-sdk/msbuild-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ In addition to the standard [MSBuild item attributes](/visualstudio/msbuild/item
17831783

17841784
### CopyToPublishDirectory
17851785

1786-
The `CopyToPublishDirectory` metadata on an MSBuild item controls when the item is copied to the publish directory. Allowable values are `PreserveNewest`, which only copies the item if it has changed, `Always`, which always copies the item, and `Never`, which never copies the item. From a performance standpoint, `PreserveNewest` is preferable because it enables an incremental build.
1786+
The `CopyToPublishDirectory` metadata on an MSBuild item controls when the item is copied to the publish directory. Allowable values are `PreserveNewest`, which only copies the item if it has changed in the source location, `IfDifferent`, which only copies the item if it has changed either in the source or target location (helpful for situations where we need to reset changs occuring after the publishing), `Always`, which always copies the item, and `Never`, which never copies the item. From a performance standpoint, `PreserveNewest` is preferable because it enables an incremental build. `Always` should be avoided - as any scenarios requiring it should be achievable with more effective `IfDifferent`.
17871787

17881788
```xml
17891789
<ItemGroup>

0 commit comments

Comments
 (0)