Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks/Common')
-rw-r--r--src/tasks/Common/IsExternalInit.cs7
-rw-r--r--src/tasks/Common/Utils.cs2
2 files changed, 9 insertions, 0 deletions
diff --git a/src/tasks/Common/IsExternalInit.cs b/src/tasks/Common/IsExternalInit.cs
new file mode 100644
index 00000000000..d7be6913103
--- /dev/null
+++ b/src/tasks/Common/IsExternalInit.cs
@@ -0,0 +1,7 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+
+namespace System.Runtime.CompilerServices
+{
+ internal sealed class IsExternalInit { }
+}
diff --git a/src/tasks/Common/Utils.cs b/src/tasks/Common/Utils.cs
index b7c1fd6d91e..78738d59be2 100644
--- a/src/tasks/Common/Utils.cs
+++ b/src/tasks/Common/Utils.cs
@@ -102,6 +102,7 @@ internal static class Utils
return outputBuilder.ToString().Trim('\r', '\n');
}
+#if NETCOREAPP
public static void DirectoryCopy(string sourceDir, string destDir, Func<string, bool> predicate)
{
string[] files = Directory.GetFiles(sourceDir, "*", SearchOption.AllDirectories);
@@ -118,6 +119,7 @@ internal static class Utils
File.Copy(file, Path.Combine(destDir, relativePath), true);
}
}
+#endif
public static TaskLoggingHelper? Logger { get; set; }