Skip to content

Commit

Permalink
(GH-627) Obsoleted DNU Aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
gep13 committed May 25, 2016
1 parent dfae6c9 commit f3d9651
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Cake.Common/Tools/DNU/DNUAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f3d9651

Please sign in to comment.