Describes settings for DNXSupport.DNURestore method.
예제 #1
0
 /// <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() );
 }
예제 #2
0
        /// <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());
        }