24 references to XPlatUtility
NuGet.CommandLine.XPlat (24)
Commands\ConfigCommands\ConfigRunners.cs (2)
111
ISettings settings =
XPlatUtility
.ProcessConfigFile(args.ConfigFile);
133
ISettings settings =
XPlatUtility
.ProcessConfigFile(args.ConfigFile);
Commands\DeleteCommand.cs (1)
84
PackageSourceProvider sourceProvider = new PackageSourceProvider(
XPlatUtility
.GetSettingsForCurrentWorkingDirectory(), enablePackageSourcesChangedEvent: false);
Commands\LocalsCommand.cs (1)
46
var setting =
XPlatUtility
.GetSettingsForCurrentWorkingDirectory();
Commands\Package\Download\PackageDownloadRunner.cs (1)
40
XPlatUtility
.ConfigureProtocol();
Commands\Package\Update\PackageUpdateCommandRunner.cs (1)
36
XPlatUtility
.ConfigureProtocol();
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (1)
408
XPlatUtility
.ConfigureProtocol();
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (1)
149
setLogLevel(
XPlatUtility
.MSBuildVerbosityToNuGetLogLevel(verbosityValue));
Commands\PushCommand.cs (1)
141
var sourceProvider = new PackageSourceProvider(
XPlatUtility
.ProcessConfigFile(configFile), enablePackageSourcesChangedEvent: false);
Commands\Signing\SignCommand.cs (1)
176
setLogLevel(
XPlatUtility
.MSBuildVerbosityToNuGetLogLevel(parseResult.GetValue(verbosity)));
Commands\Signing\TrustedSignersCommand.cs (2)
203
ISettings settings =
XPlatUtility
.ProcessConfigFile(configFile);
220
setLogLevel(
XPlatUtility
.MSBuildVerbosityToNuGetLogLevel(verbosity));
Commands\Signing\VerifyCommand.cs (2)
76
args.Settings =
XPlatUtility
.ProcessConfigFile(parseResult.GetValue(configFile));
77
setLogLevel(
XPlatUtility
.MSBuildVerbosityToNuGetLogLevel(parseResult.GetValue(verbosity)));
Commands\Why\WhyCommandRunner.cs (4)
102
if (
XPlatUtility
.IsJsonFile(path))
190
&& (
XPlatUtility
.IsSolutionFile(fullPath) ||
XPlatUtility
.IsProjectFile(fullPath) ||
XPlatUtility
.IsJsonFile(fullPath) ||
Program.cs (1)
158
XPlatUtility
.SetUserAgent();
Utility\MSBuildAPIUtility.cs (5)
97
if (
XPlatUtility
.IsSolutionFile(solutionPath))
136
projectOrSolutionFile =
XPlatUtility
.GetProjectOrSolutionFileFromDirectory(fullPath);
139
else if (
XPlatUtility
.IsSolutionFile(fullPath) ||
XPlatUtility
.IsProjectFile(fullPath))
152
return
XPlatUtility
.IsSolutionFile(projectOrSolutionFile)