1 implementation of IMSBuildProject
NuGet.Build.Tasks.Console (1)
MSBuildProjectInstance.cs (1)
17internal sealed class MSBuildProjectInstance : MSBuildItemBase, IMSBuildProject
44 references to IMSBuildProject
NuGet.Build.Tasks.Console (44)
ExtensionMethods.cs (1)
60public static string[] SplitGlobalPropertyValueOrNull(this IMSBuildProject item, string name)
MSBuildStaticGraphRestore.cs (39)
265internal static IReadOnlyCollection<FrameworkDependency> GetFrameworkReferences(IMSBuildProject project) 295internal static IEnumerable<DownloadDependency> GetPackageDownloads(IMSBuildProject project) 329internal static Dictionary<string, CentralPackageVersion> GetCentralPackageVersions(IMSBuildProject project) 352internal static ImmutableArray<LibraryDependency> GetPackageReferences(IMSBuildProject project, bool isCentralPackageVersionManagementEnabled, IReadOnlyDictionary<string, CentralPackageVersion> centralPackageVersions) 405internal static Dictionary<string, PrunePackageReference> GetPrunePackageReferences(IMSBuildProject project) 426internal static string GetPackagesPath(IMSBuildProject project, ISettings settings) 439internal static string GetProjectName(IMSBuildProject project) 466internal static List<ProjectRestoreReference> GetProjectReferences(IMSBuildProject project) 498internal static List<ProjectRestoreMetadataFrameworkInfo> GetProjectRestoreMetadataFrameworkInfos(List<TargetFrameworkInformation> targetFrameworkInfos, IReadOnlyDictionary<string, IMSBuildProject> projects) 504var project = projects[targetFrameworkInfo.TargetAlias]; 518/// <param name="project">An <see cref="IMSBuildProject" /> representing the main project.</param> 521internal static IReadOnlyDictionary<string, IMSBuildProject> GetProjectTargetFrameworks(IMSBuildProject project, IReadOnlyDictionary<string, IMSBuildProject> innerNodes) 524var projectTargetFrameworks = new Dictionary<string, IMSBuildProject>(); 532if (!innerNodes.TryGetValue(projectTargetFramework, out IMSBuildProject innerNode)) 550internal static string[] GetTargetFrameworkStrings(IMSBuildProject project) 610internal static string GetRepositoryPath(IMSBuildProject project, ISettings settings) 633internal static string GetRestoreOutputPath(IMSBuildProject project) 654internal static List<PackageSource> GetSources(IMSBuildProject project, IReadOnlyCollection<IMSBuildProject> innerNodes, ISettings settings) 751internal static List<TargetFrameworkInformation> GetTargetFrameworkInfos(IReadOnlyDictionary<string, IMSBuildProject> projectInnerNodes, bool isCpvmEnabled, bool isPruningEnabledGlobally) 757var msBuildProjectInstance = projectInnerNode.Value; 1063/// <param name="project">An <see cref="IMSBuildProject" /> object that represents the project.</param> 1066private PackageSpec GetPackageSpec(IMSBuildProject project, IReadOnlyDictionary<string, IMSBuildProject> allInnerNodes) 1114/// <param name="project">An <see cref="IMSBuildProject" /> representing the project.</param> 1118private (ProjectRestoreMetadata RestoreMetadata, List<TargetFrameworkInformation> TargetFrameworkInfos) GetProjectRestoreMetadataAndTargetFrameworkInformation(IMSBuildProject project, IReadOnlyDictionary<string, IMSBuildProject> projectsByTargetFramework, ISettings settings) 1133List<IMSBuildProject> innerNodes = projectsByTargetFramework.Values.ToList(); 1196static (ProjectStyle, string packagesConfigPath) GetProjectStyle(IMSBuildProject project, IReadOnlyDictionary<string, IMSBuildProject> tfms, Common.ILogger log) 1211internal static bool GetRestoreEnableAnalyzerAssets(IMSBuildProject project, IEnumerable<IMSBuildProject> innerBuilds) 1213foreach (IMSBuildProject innerBuild in innerBuilds.NoAllocEnumerate()) 1224internal static bool GetPackagePruningDefault(IEnumerable<IMSBuildProject> innerBuilds) 1226foreach (var item in innerBuilds.NoAllocEnumerate()) 1236private static HashSet<string> GetAuditSuppressions(IMSBuildProject project) 1423private static IEnumerable<IMSBuildItem> GetDistinctItemsOrEmpty(IMSBuildProject project, string itemName)
ProjectWithInnerNodes.cs (4)
16internal sealed class ProjectWithInnerNodes : ConcurrentDictionary<string, IMSBuildProject> 23public ProjectWithInnerNodes(string targetFramework, IMSBuildProject outerProject) 31public IMSBuildProject OuterProject { get; private set; } 40public ProjectWithInnerNodes Add(string targetFramework, IMSBuildProject project)