13 instantiations of ManagedCodeConventions
dotnet (1)
ToolPackage\ToolPackageDownloader.cs (1)
139var conventions = new ManagedCodeConventions(runtimeGraph);
Microsoft.DotNet.Build.Tasks.Packaging (2)
NuGetAssetResolver.cs (2)
32_conventions = new ManagedCodeConventions(runtimeGraph); 171_conventions = new ManagedCodeConventions(runtimeGraph);
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
25_conventions = new ManagedCodeConventions(JsonRuntimeFormat.ReadRuntimeGraph(runtimeGraph));
Microsoft.DotNet.PackageTesting (1)
Package.cs (1)
25ManagedCodeConventions conventions = new(null);
Microsoft.DotNet.PackageValidation (2)
Package.cs (1)
93_conventions = new ManagedCodeConventions(s_runtimeGraph);
Validators\CompatibleFrameworkInPackageValidator.cs (1)
28ManagedCodeConventions conventions = new(null);
NuGet.Commands (1)
RestoreCommand\RestoreTargetGraph.cs (1)
85Conventions = new ManagedCodeConventions(runtimeGraph);
NuGet.Packaging (5)
PackageCreation\Authoring\PackageBuilder.cs (1)
729var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
Rules\AccidentallyCompatibleWithAllFrameworksRule.cs (1)
34var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
Rules\DependenciesGroupsForEachTFMRule.cs (1)
62var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
Rules\InvalidUndottedFrameworkRule.cs (1)
198var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
Rules\UpholdBuildConventionRule.cs (1)
19private static ManagedCodeConventions ManagedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
47 references to ManagedCodeConventions
dotnet (2)
ToolPackage\ToolPackageDownloader.cs (2)
139var conventions = new ManagedCodeConventions(runtimeGraph); 211ManagedCodeConventions managedCodeConventions,
Microsoft.DotNet.Build.Tasks.Packaging (8)
NuGetAssetResolver.cs (5)
18private ManagedCodeConventions _conventions; 87if (criterium.Properties.ContainsKey(ManagedCodeConventions.PropertyNames.TargetFrameworkMoniker) && 88!criterium.Properties.ContainsKey(ManagedCodeConventions.PropertyNames.RuntimeIdentifier)) 90criterium.Properties.Add(ManagedCodeConventions.PropertyNames.RuntimeIdentifier, null); 157private ManagedCodeConventions _conventions;
ValidateFrameworkPackage.cs (1)
15using PropertyNames = NuGet.Client.ManagedCodeConventions.PropertyNames;
ValidatePackage.cs (1)
15using PropertyNames = NuGet.Client.ManagedCodeConventions.PropertyNames;
ValidationTask.cs (1)
15using PropertyNames = NuGet.Client.ManagedCodeConventions.PropertyNames;
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
TargetFrameworkResolver.cs (1)
20private readonly ManagedCodeConventions _conventions;
Microsoft.DotNet.PackageTesting (1)
Package.cs (1)
25ManagedCodeConventions conventions = new(null);
Microsoft.DotNet.PackageValidation (2)
Package.cs (1)
20private readonly ManagedCodeConventions _conventions;
Validators\CompatibleFrameworkInPackageValidator.cs (1)
28ManagedCodeConventions conventions = new(null);
NuGet.Commands (22)
RestoreCommand\CompatibilityChecker.cs (2)
268group.Properties.TryGetValue(ManagedCodeConventions.PropertyNames.RuntimeIdentifier, out var ridObj); 269group.Properties.TryGetValue(ManagedCodeConventions.PropertyNames.TargetFrameworkMoniker, out var tfmObj);
RestoreCommand\ContentFiles\ContentFileUtils.cs (4)
40var codeLanguage = (string)group.Properties[ManagedCodeConventions.PropertyNames.CodeLanguage]; 59(NuGetFramework)group.Properties[ManagedCodeConventions.PropertyNames.TargetFrameworkMoniker]); 90var codeLanguage = group.Properties[ManagedCodeConventions.PropertyNames.CodeLanguage] as string; 258CodeLanguage = ManagedCodeConventions.PropertyNames.AnyValue
RestoreCommand\IRestoreTargetGraph.cs (2)
40/// Gets the <see cref="ManagedCodeConventions" /> used to resolve assets from packages in this graph 42ManagedCodeConventions Conventions { get; }
RestoreCommand\RestoreTargetGraph.cs (2)
35/// Gets the <see cref="ManagedCodeConventions" /> used to resolve assets from packages in this graph 37public ManagedCodeConventions Conventions { get; }
RestoreCommand\Utility\LockFileUtils.cs (12)
121internal static List<(List<SelectionCriteria>, bool)> CreateOrderedCriteriaSets(ManagedCodeConventions codeConventions, NuGetFramework framework, string runtimeIdentifier) 174ManagedCodeConventions managedCodeConventions, 255ManagedCodeConventions managedCodeConventions, 304private static void AddContentFiles(ManagedCodeConventions managedCodeConventions, LockFileTargetLibrary lockFileLib, NuGetFramework framework, ContentItemCollection contentItems, NuspecReader nuspec) 329ManagedCodeConventions managedCodeConventions, 689ManagedCodeConventions.PropertyNames.TargetFrameworkMoniker, out object tfmObj)) 699if (item.Properties.TryGetValue(ManagedCodeConventions.PropertyNames.Locale, out locale)) 701newItem.Properties[ManagedCodeConventions.PropertyNames.Locale] = (string)locale; 785ManagedCodeConventions conventions, 926ManagedCodeConventions.PropertyNames.TargetFrameworkMoniker, 959ManagedCodeConventions.PropertyNames.RuntimeIdentifier); 983var rid = (string)group.Properties[ManagedCodeConventions.PropertyNames.RuntimeIdentifier];
NuGet.Packaging (11)
ContentModel\ContentItemCollection.cs (1)
264if (contentItem.TryGetValue(ManagedCodeConventions.PropertyNames.ManagedAssembly, out _))
ContentModel\ManagedCodeConventions.cs (3)
367private ManagedCodeConventions _conventions; 369internal ManagedCodeCriteria(ManagedCodeConventions conventions) 475internal ManagedCodePatterns(ManagedCodeConventions conventions)
PackageCreation\Authoring\PackageBuilder.cs (1)
729var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
PackageReaderBase.cs (2)
364/// For PackageReference compatibility, use <see cref="NuGet.Client.ManagedCodeConventions"/> 388/// For PackageReference compatibility, use <see cref="NuGet.Client.ManagedCodeConventions"/>
Rules\AccidentallyCompatibleWithAllFrameworksRule.cs (1)
34var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
Rules\DependenciesGroupsForEachTFMRule.cs (1)
62var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
Rules\InvalidUndottedFrameworkRule.cs (1)
198var managedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);
Rules\UpholdBuildConventionRule.cs (1)
19private static ManagedCodeConventions ManagedCodeConventions = new ManagedCodeConventions(RuntimeGraph.Empty);