Move Class

MSBuild

Moves files on the filesystem to a new location.


Namespace: MSBuild.Community.Tasks
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class Move
    Inherits Task
C#
public class Move : Task
C++
ref class Move : Task
J#
public class Move extends Task
JScript
public class Move extends Task

Example

Move a file to another folder

 Copy Code
            <Move SourceFiles="Test\MoveMe.txt"
                DestinationFolder="Test\Move" />
            

Rename a file

 Copy Code
            <Move SourceFiles="Test\Move\MoveMe.txt"
                DestinationFiles="Test\Move\Renamed.txt" />
            

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      MSBuild.Community.Tasks.Move

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.