Base:
49 references to ToString
aspire-managed (1)
NuGet\Commands\LayoutCommand.cs (1)
90t.TargetFramework.ToString().Equals(framework, StringComparison.OrdinalIgnoreCase));
Microsoft.Build.NuGetSdkResolver (1)
RestoreRunnerEx.cs (1)
78originalTargetFrameworks.Add(tf.ToString());
Microsoft.DotNet.Build.Tasks.Packaging (25)
GeneratePackageReport.cs (7)
92foreach (var framework in _frameworks.OrderBy(f => f.Key.ToString())) 100NuGetAssetResolver.ExamineAssets(Log, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder); 112Framework = fx.ToString(), 116report.Targets.Add(fx.ToString(), reportTarget); 121string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}"; 142Framework = fx.ToString(), 171report.SupportedFrameworks.Add(fx.ToString(), version);
GetApplicableAssetsFromPackageReports.cs (1)
64string targetString = String.IsNullOrEmpty(TargetRuntime) ? fx.ToString() : $"{fx}/{TargetRuntime}";
GetApplicableAssetsFromPackages.cs (4)
108Log.LogMessage($"Resolved compile assets from {compileFx.ToString()}: {String.Join(";", CompileAssets.Select(c => c.ItemSpec))}"); 115Log.LogError($"Could not locate compile assets for any of the frameworks {String.Join(";", compileFxs.Select(fx => fx.ToString()))}"); 132Log.LogMessage($"Resolved runtime assets from {runtimeFx.ToString()}: {String.Join(";", RuntimeAssets.Select(r => r.ItemSpec))}"); 139Log.LogError($"Could not locate runtime assets for any of the frameworks {String.Join(";", runtimeFxs.Select(fx => fx.ToString()))}");
GetLayoutFiles.cs (1)
92if (!packageReport.SupportedFrameworks.ContainsKey(fx.ToString()))
GetMinimumNETStandard.cs (1)
42MinimumNETStandard = minNETStandard.ToString();
HarvestPackage.cs (2)
201NuGetAssetResolver.ExamineAssets(Log, "Compile", package, fx.ToString(), compileAssets, out hasCompileAsset, out hasCompilePlaceHolder); 214string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}";
PromoteDependencies.cs (2)
47Log.LogMessage(LogImportance.Low, $"Ref frameworks {string.Join(";", refFxs.Select(f => f.ToString()))}"); 52Log.LogMessage(LogImportance.Low, $"Lib frameworks {string.Join(";", libFxs.Select(f => f.ToString()))}");
ValidateFrameworkPackage.cs (1)
88var targetKey = string.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}";
ValidatePackage.cs (6)
180if (!_report.Targets.TryGetValue(fx.ToString(), out compileTarget)) 182Log.LogError($"Missing target {fx.ToString()} from validation report {ReportFile}"); 188NuGetAssetResolver.ExamineAssets(Log, "Compile", ContractName, fx.ToString(), compileAssetPaths, out hasCompileAsset, out hasCompilePlaceHolder); 193string target = String.IsNullOrEmpty(runtimeId) ? fx.ToString() : $"{fx}/{runtimeId}"; 339if (!implementationAssembly.TargetFramework.Equals(fx) && !runtimeFxSuppression.Contains(fx.ToString())) 658ITaskItem item = new TaskItem(Framework.ToString());
Microsoft.DotNet.PackageTesting (1)
GetCompatiblePackageTargetFrameworks.cs (1)
115supportedPackage.SetMetadata("TargetFramework", framework.ToString());
Microsoft.DotNet.PackageValidation (6)
Validators\BaselinePackageValidator.cs (3)
48log.LogError(new Suppression(DiagnosticIds.TargetFrameworkDropped) { Target = baselineTargetFramework.ToString() }, 72log.LogError(new Suppression(DiagnosticIds.TargetFrameworkDropped) { Target = baselineTargetFramework.ToString() }, 101log.LogError(new Suppression(DiagnosticIds.TargetFrameworkAndRidPairDropped) { Target = baselineTargetFramework.ToString() + "-" + baselineRuntimeSpecificAssetsRidGroup.Key },
Validators\CompatibleTFMValidator.cs (3)
44log.LogError(new Suppression(DiagnosticIds.ApplicableCompileTimeAsset) { Target = framework.ToString() }, 54log.LogError(new Suppression(DiagnosticIds.CompatibleRuntimeRidLessAsset) { Target = framework.ToString() }, 74log.LogError(new Suppression(DiagnosticIds.CompatibleRuntimeRidSpecificAsset) { Target = framework.ToString() + "-" + rid },
NuGet.Build.Tasks.Pack (1)
PackTaskLogic.cs (1)
1020if (centralTDG.FrameworkName.Equals(framework.FrameworkName.ToString(), StringComparison.OrdinalIgnoreCase))
NuGet.CommandLine.XPlat (1)
Commands\PackageReferenceCommands\AddPackageReferenceCommandRunner.cs (1)
362.OrderBy(tuple => tuple.frameworkInfo.FrameworkName.ToString(), StringComparer.Ordinal);
NuGet.Commands (4)
RestoreCommand\Diagnostics\UnexpectedDependencyMessages.cs (1)
325.Select(e => string.IsNullOrEmpty(e.TargetAlias) ? e.FrameworkName.ToString() : e.TargetAlias)
RestoreCommand\Diagnostics\UnresolvedMessages.cs (1)
58ddi.Framework.ToString(),
RestoreCommand\LockFileBuilder.cs (2)
162.OrderBy(graph => graph.Framework.ToString(), StringComparer.Ordinal) 470string framework = (isAliasedLockFile && !string.IsNullOrEmpty(frameworkInfo.TargetAlias)) ? frameworkInfo.TargetAlias : frameworkInfo.FrameworkName.ToString();
NuGet.Frameworks (5)
FrameworkRange.cs (2)
94return string.Format(CultureInfo.InvariantCulture, "[{0}, {1}]", Min.ToString(), Max.ToString());
FrameworkReducer.cs (2)
348return results.OrderBy(f => f.Framework, StringComparer.OrdinalIgnoreCase).ThenBy(f => f.ToString()); 444Debug.Fail("Unable to get portable frameworks from: " + pcl.ToString());
FrameworkRuntimePair.cs (1)
72return framework.ToString();
NuGet.Packaging (1)
PackageReference.cs (1)
114return String.Format(CultureInfo.InvariantCulture, "{0} {1}", PackageIdentity.ToString(), TargetFramework.ToString());
NuGet.ProjectModel (3)
CentralTransitiveDependencyGroup.cs (1)
25FrameworkName = framework.ToString();
ProjectLockFile\PackagesLockFileFormat.cs (1)
288[FrameworkProperty] = target.TargetFramework.ToString(),
ProjectLockFile\PackagesLockFileTarget.cs (1)
96frameworkString = framework.ToString();