/// <summary> /// Runs dnu restore. /// </summary> /// <param name="context">This cake context.</param> /// <param name="config">The configuration to use.</param> public static void DNURestore( this ICakeContext context, Action<DNURestoreSettings> config ) { var c = new DNURestoreSettings(); config( c ); var b = new StringBuilder(); b.Append( "dnu " ); c.ToString( b ); RunCmdAliases.RunCmdSuccessful( context, b.ToString() ); }
/// <summary> /// Runs dnu restore. /// </summary> /// <param name="context">This cake context.</param> /// <param name="config">The configuration to use.</param> public static void DNURestore(this ICakeContext context, Action <DNURestoreSettings> config) { var c = new DNURestoreSettings(); config(c); var b = new StringBuilder(); b.Append("dnu "); c.ToString(b); RunSuccessfullCmd(context, b.ToString()); }