* update nuget to 4.0.0-rc3 and sdk to 1.0.0-alpha-20170105-5 * Modifying restore project.json to use the project.json stage0 CLI instead of restore-projectjson command. * add a nuget dependency so migrated project has packageref and generates an assets file on restore
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			822 B
			
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			822 B
			
		
	
	
	
		
			C#
		
	
	
	
	
	
// Copyright (c) .NET Foundation and contributors. All rights reserved.
 | 
						|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
 | 
						|
 | 
						|
using Microsoft.DotNet.Cli.Utils;
 | 
						|
 | 
						|
namespace Microsoft.DotNet.Tools.Test.Utilities
 | 
						|
{
 | 
						|
    public sealed class RestoreProjectJsonCommand : TestCommand
 | 
						|
    {
 | 
						|
        public RestoreProjectJsonCommand()
 | 
						|
            : base(new RepoDirectoriesProvider().PjDotnet)
 | 
						|
        {
 | 
						|
        }
 | 
						|
 | 
						|
        public override CommandResult Execute(string args="")
 | 
						|
        {
 | 
						|
            args = $"restore {args}";
 | 
						|
 | 
						|
            return base.Execute(args);
 | 
						|
        }
 | 
						|
 | 
						|
        public override CommandResult ExecuteWithCapturedOutput(string args = "")
 | 
						|
        {
 | 
						|
            args = $"restore {args}";
 | 
						|
            return base.ExecuteWithCapturedOutput(args);
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |