From f3d9651299cbf06b02328f627911fd2f8377b49f Mon Sep 17 00:00:00 2001 From: Gary Ewan Park Date: Mon, 23 May 2016 12:45:55 +0100 Subject: [PATCH] (GH-627) Obsoleted DNU Aliases --- src/Cake.Common/Tools/DNU/DNUAliases.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Cake.Common/Tools/DNU/DNUAliases.cs b/src/Cake.Common/Tools/DNU/DNUAliases.cs index 0821aceef5..ff66f4c2ad 100644 --- a/src/Cake.Common/Tools/DNU/DNUAliases.cs +++ b/src/Cake.Common/Tools/DNU/DNUAliases.cs @@ -26,6 +26,7 @@ public static class DNUAliases [CakeMethodAlias] [CakeAliasCategory("Restore")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Restore")] + [Obsolete("Please use DotNetCoreRestore() instead.", false)] public static void DNURestore(this ICakeContext context) { context.DNURestore(null, null); @@ -48,6 +49,7 @@ public static void DNURestore(this ICakeContext context) [CakeMethodAlias] [CakeAliasCategory("Restore")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Restore")] + [Obsolete("Please use DotNetCoreRestore(string) instead.", false)] public static void DNURestore(this ICakeContext context, FilePath filePath) { context.DNURestore(filePath, null); @@ -80,6 +82,7 @@ public static void DNURestore(this ICakeContext context, FilePath filePath) [CakeMethodAlias] [CakeAliasCategory("Restore")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Restore")] + [Obsolete("Please use DotNetCoreRestore(DotNetCoreRestoreSettings) instead.", false)] public static void DNURestore(this ICakeContext context, DNURestoreSettings settings) { context.DNURestore(null, settings); @@ -117,6 +120,7 @@ public static void DNURestore(this ICakeContext context, DNURestoreSettings sett [CakeMethodAlias] [CakeAliasCategory("Restore")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Restore")] + [Obsolete("Please use DotNetCoreRestore(string, DotNetCoreRestoreSettings) instead.", false)] public static void DNURestore(this ICakeContext context, FilePath filePath, DNURestoreSettings settings) { if (context == null) @@ -146,6 +150,7 @@ public static void DNURestore(this ICakeContext context, FilePath filePath, DNUR [CakeMethodAlias] [CakeAliasCategory("Build")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Build")] + [Obsolete("Please use DotNetCoreBuild(string) instead.", false)] public static void DNUBuild(this ICakeContext context, string path) { context.DNUBuild(path, null); @@ -173,6 +178,7 @@ public static void DNUBuild(this ICakeContext context, string path) [CakeMethodAlias] [CakeAliasCategory("Build")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Build")] + [Obsolete("Please use DotNetCoreBuild(string, DotNetCoreBuildSettings) instead.", false)] public static void DNUBuild(this ICakeContext context, string path, DNUBuildSettings settings) { if (context == null) @@ -202,6 +208,7 @@ public static void DNUBuild(this ICakeContext context, string path, DNUBuildSett [CakeMethodAlias] [CakeAliasCategory("Pack")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Pack")] + [Obsolete("Please use DotNetCorePack(string) instead.", false)] public static void DNUPack(this ICakeContext context, string path) { context.DNUPack(path, null); @@ -229,6 +236,7 @@ public static void DNUPack(this ICakeContext context, string path) [CakeMethodAlias] [CakeAliasCategory("Pack")] [CakeNamespaceImport("Cake.Common.Tools.DNU.Pack")] + [Obsolete("Please use DotNetCorePack(string, DotNetCorePackSettings) instead.", false)] public static void DNUPack(this ICakeContext context, string path, DNUPackSettings settings) { if (context == null)