Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsoleted DNU Aliases #914

Merged
merged 1 commit into from
May 25, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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