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