-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding _FindAllReferenceWorkload target to find workloads in project. Discover the projects and then pipe all arguements to workload install command
- Loading branch information
William Li
committed
Jul 20, 2021
1 parent
05ab6d2
commit bbd4211
Showing
37 changed files
with
573 additions
and
1,038 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// 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 System; | ||
using Microsoft.DotNet.Tools; | ||
using System.CommandLine; | ||
using System.IO; | ||
using Microsoft.Build.Framework; | ||
using Microsoft.DotNet.Tools.Common; | ||
|
||
namespace Microsoft.DotNet.Cli | ||
{ | ||
internal static class CommonOptionsExtension | ||
{ | ||
public static LoggerVerbosity ToLoggerVerbosity(this VerbosityOptions verbosityOptions) | ||
{ | ||
LoggerVerbosity verbosity = Build.Framework.LoggerVerbosity.Normal; | ||
switch (verbosityOptions) | ||
{ | ||
case VerbosityOptions.d: | ||
case VerbosityOptions.detailed: | ||
verbosity = Build.Framework.LoggerVerbosity.Detailed; | ||
break; | ||
case VerbosityOptions.diag: | ||
case VerbosityOptions.diagnostic: | ||
verbosity = Build.Framework.LoggerVerbosity.Diagnostic; | ||
break; | ||
case VerbosityOptions.m: | ||
case VerbosityOptions.minimal: | ||
verbosity = Build.Framework.LoggerVerbosity.Minimal; | ||
break; | ||
case VerbosityOptions.n: | ||
case VerbosityOptions.normal: | ||
verbosity = Build.Framework.LoggerVerbosity.Normal; | ||
break; | ||
case VerbosityOptions.q: | ||
case VerbosityOptions.quiet: | ||
verbosity = Build.Framework.LoggerVerbosity.Quiet; | ||
break; | ||
} | ||
|
||
|
||
return verbosity; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.