예제 #1
0
 internal static string GetCommandLineRuntimeIdentifier(this ParseResult parseResult)
 {
     return(parseResult.HasOption(RunCommandParser.RuntimeOption) ?
            parseResult.ValueForOption <string>(RunCommandParser.RuntimeOption) :
            parseResult.HasOption(CommonOptions.OperatingSystemOption().Aliases.First()) || parseResult.HasOption(CommonOptions.ArchitectureOption().Aliases.First()) ?
            CommonOptions.ResolveRidShorthandOptionsToRuntimeIdentifier(
                parseResult.ValueForOption <string>(CommonOptions.OperatingSystemOption().Aliases.First()),
                parseResult.ValueForOption <string>(CommonOptions.ArchitectureOption().Aliases.First())) :
            null);
 }
예제 #2
0
 internal static string GetCommandLineRuntimeIdentifier(this ParseResult parseResult)
 {
     return(parseResult.HasOption(RunCommandParser.RuntimeOption) ?
            parseResult.GetValueForOption(RunCommandParser.RuntimeOption) :
            parseResult.HasOption(CommonOptions.OperatingSystemOption) ||
            parseResult.HasOption(CommonOptions.ArchitectureOption) ||
            parseResult.HasOption(CommonOptions.LongFormArchitectureOption) ?
            CommonOptions.ResolveRidShorthandOptionsToRuntimeIdentifier(
                parseResult.GetValueForOption(CommonOptions.OperatingSystemOption),
                CommonOptions.ArchOptionValue(parseResult)) :
            null);
 }