[Microsoft.Build.Tasks] Add stub for UseHardlinksIfPossible to Copy task
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 16 Feb 2015 00:50:07 +0000 (01:50 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 16 Feb 2015 00:50:07 +0000 (01:50 +0100)
Creating hardlinks in .NET doesn't have a nice API and using Mono.Unix/Pinvoke doesn't
seem worth the effort at this point since the feature is off by default on msbuild as well.

mcs/class/Microsoft.Build.Tasks/Microsoft.Build.Tasks/Copy.cs

index f496317f1aae855850d494543109ac9c90aabd14..f99086d1e804b67071f20dcff554a5c2293cca1a 100644 (file)
@@ -44,6 +44,7 @@ namespace Microsoft.Build.Tasks {
                bool            overwriteReadOnlyFiles;
                int                     retries;
                int                     retryDelayMilliseconds;
+               bool            useHardlinksIfPossible;
 
                public Copy ()
                {
@@ -193,6 +194,16 @@ namespace Microsoft.Build.Tasks {
                        }
                }
 
+               [MonoTODO ("Not implemented yet.")]
+               public bool UseHardlinksIfPossible {
+                       get {
+                               return useHardlinksIfPossible;
+                       }
+                       set {
+                               useHardlinksIfPossible = value;
+                       }
+               }
+
                [Required]
                public ITaskItem[] SourceFiles {
                        get {