Share via


Copy.SkipUnchangedFiles Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets a Boolean value that indicates whether the Copy task should skip the copying of files that are unchanged between the source and destination.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property SkipUnchangedFiles As Boolean
public bool SkipUnchangedFiles { get; set; }
public:
property bool SkipUnchangedFiles {
    bool get ();
    void set (bool value);
}
member SkipUnchangedFiles : bool with get, set
function get SkipUnchangedFiles () : boolean 
function set SkipUnchangedFiles (value : boolean)

Property Value

Type: System.Boolean
true if the Copy task should skip the copying of files that are unchanged between the source and destination; otherwise, false.

Remarks

The Copy task considers files to be unchanged if they have the same size and the same last modified time.

.NET Framework Security

See Also

Reference

Copy Class

Microsoft.Build.Tasks Namespace