Merge pull request #7014 from dotnet/merges/release/2.0.0-to-master-20170628-070032

Merge release/2.0.0 to master
This commit is contained in:
Livar 2017-06-28 10:29:31 -07:00 committed by GitHub
commit 5c67b11d62
11 changed files with 19 additions and 51 deletions

View file

@ -23,8 +23,7 @@ namespace Microsoft.DotNet.Tools.DependencyInvoker
Create.Option( Create.Option(
"-h|--help", "-h|--help",
"Show help information", "Show help information",
Accept.NoArguments(), Accept.NoArguments()),
materialize: o => o.Option.Command().HelpView()),
Create.Option( Create.Option(
"-p|--project-path", "-p|--project-path",
"Path to Project.json that contains the tool dependency", "Path to Project.json that contains the tool dependency",

View file

@ -12,7 +12,7 @@
<!-- We'll usually want to keep these versions in sync, but we may want to diverge in some <!-- We'll usually want to keep these versions in sync, but we may want to diverge in some
cases, so use separate properties but derive one from the other unless we want to cases, so use separate properties but derive one from the other unless we want to
explicitly use different versions. --> explicitly use different versions. -->
<CLI_NETSDK_Version>2.0.0-preview2-20170615-7</CLI_NETSDK_Version> <CLI_NETSDK_Version>2.0.0-preview3-20170622-1</CLI_NETSDK_Version>
<CLI_MSBuildExtensions_Version>$(CLI_NETSDK_Version)</CLI_MSBuildExtensions_Version> <CLI_MSBuildExtensions_Version>$(CLI_NETSDK_Version)</CLI_MSBuildExtensions_Version>
<CLI_NuGet_Version>4.3.0-preview3-4168</CLI_NuGet_Version> <CLI_NuGet_Version>4.3.0-preview3-4168</CLI_NuGet_Version>
@ -27,7 +27,7 @@
<TemplateEngineTemplate2_0Version>1.0.0-beta2-20170620-266</TemplateEngineTemplate2_0Version> <TemplateEngineTemplate2_0Version>1.0.0-beta2-20170620-266</TemplateEngineTemplate2_0Version>
<PlatformAbstractionsVersion>2.0.0-preview3-25426-01</PlatformAbstractionsVersion> <PlatformAbstractionsVersion>2.0.0-preview3-25426-01</PlatformAbstractionsVersion>
<DependencyModelVersion>2.0.0-preview3-25426-01</DependencyModelVersion> <DependencyModelVersion>2.0.0-preview3-25426-01</DependencyModelVersion>
<CliCommandLineParserVersion>0.1.0-alpha-142</CliCommandLineParserVersion> <CliCommandLineParserVersion>0.1.1-alpha-167</CliCommandLineParserVersion>
<CliMigrateVersion>1.2.1-alpha-002133</CliMigrateVersion> <CliMigrateVersion>1.2.1-alpha-002133</CliMigrateVersion>
<MicroBuildVersion>0.2.0</MicroBuildVersion> <MicroBuildVersion>0.2.0</MicroBuildVersion>
<SpaTemplateVersion>1.0.0-preview-000321</SpaTemplateVersion> <SpaTemplateVersion>1.0.0-preview-000321</SpaTemplateVersion>

View file

@ -13,8 +13,7 @@ namespace Microsoft.DotNet.Cli
Create.Option( Create.Option(
"-h|--help", "-h|--help",
CommonLocalizableStrings.ShowHelpDescription, CommonLocalizableStrings.ShowHelpDescription,
Accept.NoArguments(), Accept.NoArguments());
materialize: o => o.Option.Command().HelpView());
public static Option VerbosityOption() => public static Option VerbosityOption() =>
Create.Option( Create.Option(

View file

@ -15,9 +15,7 @@ namespace Microsoft.DotNet.Cli.Add.Reference.Tests
{ {
public class GivenDotnetAddReference : TestBase public class GivenDotnetAddReference : TestBase
{ {
private const string HelpText = @".NET Add Project to Project reference Command private const string HelpText = @"Usage: dotnet add <PROJECT> reference [options] <args>
Usage: dotnet add <PROJECT> reference [options] <args>
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@ -28,9 +26,7 @@ Options:
-f, --framework <FRAMEWORK> Add reference only when targeting a specific framework -f, --framework <FRAMEWORK> Add reference only when targeting a specific framework
"; ";
private const string AddCommandHelpText = @".NET Add Command private const string AddCommandHelpText = @"Usage: dotnet add [options] <PROJECT> [command]
Usage: dotnet add [options] <PROJECT> [command]
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

View file

@ -11,9 +11,7 @@ namespace Microsoft.DotNet.Help.Tests
public class GivenThatIWantToShowHelpForDotnetHelpCommand : TestBase public class GivenThatIWantToShowHelpForDotnetHelpCommand : TestBase
{ {
private const string HelpText = private const string HelpText =
@".NET CLI help utility @"Usage: dotnet help [options] <COMMAND_NAME>
Usage: dotnet help [options] <COMMAND_NAME>
Arguments: Arguments:
<COMMAND_NAME> CLI command for which to view more detailed help. <COMMAND_NAME> CLI command for which to view more detailed help.

View file

@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.List.Reference.Tests
{ {
public class GivenDotnetListReference : TestBase public class GivenDotnetListReference : TestBase
{ {
private const string HelpText = @".NET Core Project-to-Project dependency viewer private const string HelpText = @"Usage: dotnet list <PROJECT> reference [options]
Usage: dotnet list <PROJECT> reference [options]
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@ -25,9 +23,7 @@ Options:
-h, --help Show help information. -h, --help Show help information.
"; ";
private const string ListCommandHelpText = @".NET List Command private const string ListCommandHelpText = @"Usage: dotnet list [options] <PROJECT> [command]
Usage: dotnet list [options] <PROJECT> [command]
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

View file

@ -12,9 +12,7 @@ namespace Microsoft.DotNet.Cli.Remove.Package.Tests
{ {
public class GivenDotnetRemovePackage : TestBase public class GivenDotnetRemovePackage : TestBase
{ {
private const string HelpText = @".NET Remove Package reference Command. private const string HelpText = @"Usage: dotnet remove <PROJECT> package [options] <PACKAGE_NAME>
Usage: dotnet remove <PROJECT> package [options] <PACKAGE_NAME>
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@ -24,9 +22,7 @@ Options:
-h, --help Show help information. -h, --help Show help information.
"; ";
private const string RemoveCommandHelpText = @".NET Remove Command private const string RemoveCommandHelpText = @"Usage: dotnet remove [options] <PROJECT> [command]
Usage: dotnet remove [options] <PROJECT> [command]
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

View file

@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.Remove.Reference.Tests
{ {
public class GivenDotnetRemoveReference : TestBase public class GivenDotnetRemoveReference : TestBase
{ {
private const string HelpText = @".NET Remove Project to Project reference Command private const string HelpText = @"Usage: dotnet remove <PROJECT> reference [options] <args>
Usage: dotnet remove <PROJECT> reference [options] <args>
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
@ -27,9 +25,7 @@ Options:
-f, --framework <FRAMEWORK> Remove reference only when targeting a specific framework -f, --framework <FRAMEWORK> Remove reference only when targeting a specific framework
"; ";
private const string RemoveCommandHelpText = @".NET Remove Command private const string RemoveCommandHelpText = @"Usage: dotnet remove [options] <PROJECT> [command]
Usage: dotnet remove [options] <PROJECT> [command]
Arguments: Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one. <PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.

View file

@ -16,9 +16,7 @@ namespace Microsoft.DotNet.Cli.Sln.Add.Tests
{ {
public class GivenDotnetSlnAdd : TestBase public class GivenDotnetSlnAdd : TestBase
{ {
private string HelpText = @".NET Add project(s) to a solution file Command private string HelpText = @"Usage: dotnet sln <SLN_FILE> add [options] <args>
Usage: dotnet sln <SLN_FILE> add [options] <args>
Arguments: Arguments:
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one. <SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.
@ -28,9 +26,7 @@ Options:
-h, --help Show help information. -h, --help Show help information.
"; ";
private const string SlnCommandHelpText = @".NET modify solution file command private const string SlnCommandHelpText = @"Usage: dotnet sln [options] <SLN_FILE> [command]
Usage: dotnet sln [options] <SLN_FILE> [command]
Arguments: Arguments:
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one. <SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.

View file

@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.Sln.List.Tests
{ {
public class GivenDotnetSlnList : TestBase public class GivenDotnetSlnList : TestBase
{ {
private const string HelpText = @".NET List project(s) in a solution file Command private const string HelpText = @"Usage: dotnet sln <SLN_FILE> list [options]
Usage: dotnet sln <SLN_FILE> list [options]
Arguments: Arguments:
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one. <SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.
@ -25,9 +23,7 @@ Options:
-h, --help Show help information. -h, --help Show help information.
"; ";
private const string SlnCommandHelpText = @".NET modify solution file command private const string SlnCommandHelpText = @"Usage: dotnet sln [options] <SLN_FILE> [command]
Usage: dotnet sln [options] <SLN_FILE> [command]
Arguments: Arguments:
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one. <SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.

View file

@ -14,9 +14,7 @@ namespace Microsoft.DotNet.Cli.Sln.Remove.Tests
{ {
public class GivenDotnetSlnRemove : TestBase public class GivenDotnetSlnRemove : TestBase
{ {
private const string HelpText = @".NET Remove project(s) from a solution file Command private const string HelpText = @"Usage: dotnet sln <SLN_FILE> remove [options] <args>
Usage: dotnet sln <SLN_FILE> remove [options] <args>
Arguments: Arguments:
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one. <SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.
@ -26,9 +24,7 @@ Options:
-h, --help Show help information. -h, --help Show help information.
"; ";
private const string SlnCommandHelpText = @".NET modify solution file command private const string SlnCommandHelpText = @"Usage: dotnet sln [options] <SLN_FILE> [command]
Usage: dotnet sln [options] <SLN_FILE> [command]
Arguments: Arguments:
<SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one. <SLN_FILE> Solution file to operate on. If not specified, the command will search the current directory for one.