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)