6 instantiations of ProjectDependency
dotnet-svcutil-lib (6)
Shared\ProjectDependency.cs (6)
266dependency = new ProjectDependency(assemblyName, name, version, dependencyType); 281return new ProjectDependency(assemblyPath, null, null, ProjectDependencyType.Binary); 286return new ProjectDependency(projectPath, null, null, ProjectDependencyType.Project); 296return new ProjectDependency(assemblyName, packageName, version, ProjectDependencyType.Package); 301return new ProjectDependency(null, packageName, version, ProjectDependencyType.Tool); 413return new ProjectDependency(this.FullPath, this.Name, this.Version, this.DependencyType);
99 references to ProjectDependency
dotnet-svcutil-lib (98)
Bootstrapper\SvcutilBootstrapper.cs (6)
42ProjectDependency.RemoveRedundantReferences(this.Options.References); 45internal static bool RequiresBootstrapping(FrameworkInfo targetFramework, IEnumerable<ProjectDependency> references) 117var svcutilPkgRef = ProjectDependency.FromAssembly(Path.Combine(Path.GetDirectoryName(Tool.FullPath), Tool.AssemblyName + ".dll")); 120svcutilPkgRef = ProjectDependency.FromPackage(Tool.AssemblyName, Tool.PackageVersion); 140foreach (ProjectDependency dependency in this.Options.References)
CommandProcessorOptions.cs (2)
620var references = await this.Project.ResolveProjectReferencesAsync(ProjectDependency.IgnorableDependencies, logger, cancellationToken).ConfigureAwait(false); 829foreach (ProjectDependency reference in loadableReferences)
Shared\MSBuildProj.cs (26)
57private SortedSet<ProjectDependency> _dependencies = new SortedSet<ProjectDependency>(); 58public IEnumerable<ProjectDependency> Dependencies { get { return _dependencies; } } 258if (!ProjectDependency.IsValidVersion(version)) 263ProjectDependency packageDep = ProjectDependency.FromPackage(packageName, version); 276ProjectDependency packageDep = ProjectDependency.FromCliTool(packageName, version); 286ProjectDependency projectDep = ProjectDependency.FromProject(projectPath); 349ProjectDependency projectDep = ProjectDependency.FromAssembly(binReference); 514public bool AddDependency(ProjectDependency dependency, bool copyInternalAssets = false) 750public async Task<IEnumerable<ProjectDependency>> ResolveProjectReferencesAsync(IEnumerable<ProjectDependency> excludeDependencies, ILogger logger, CancellationToken cancellationToken) 754IEnumerable<ProjectDependency> dependencies = null; 758excludeDependencies = new List<ProjectDependency>(); 774dependencies = new List<ProjectDependency>(); 783private async Task<List<ProjectDependency>> ResolvePackageReferencesAsync(ILogger logger, CancellationToken cancellationToken) 789var packageDependencies = new List<ProjectDependency>(); 818var dependency = ProjectDependency.FromPackage(Path.GetFileNameWithoutExtension(compiletimeAssembly.Path), lib.Name, lib.Version.ToNormalizedString()); 861private async Task<List<ProjectDependency>> ResolveAssemblyReferencesAsync(ILogger logger, CancellationToken cancellationToken) 867var assemblyDependencies = new List<ProjectDependency>(); 903ProjectDependency dependency = null; 914dependency = ProjectDependency.FromAssembly(Path.Combine(outputPath, assetPath));
Shared\Options\OptionValueParser.cs (4)
70else if (valueType == typeof(ProjectDependency)) 72value = CreateValue<ProjectDependency>(() => ProjectDependency.Parse(stringValue), option, stringValue); 128else if (value is ProjectDependency pd)
Shared\Options\UpdateOptions.cs (3)
41public ListValue<ProjectDependency> References { get { return GetValue<ListValue<ProjectDependency>>(ReferencesKey); } } 61new ListValueOption<ProjectDependency>(ReferencesKey) { SerializationName = "references" },
Shared\Options\WCFCSUpdateOptions.cs (3)
97foreach (var packageName in _deserializedCollectionAssemblies.Select(an => ProjectDependency.FromPackage(an, ProjectDependency.NetCoreAppPackageID, "*")))
Shared\ProjectDependency.cs (23)
23internal class ProjectDependency : IComparable<ProjectDependency> 161public static ProjectDependency Parse(string dependencySpec) 176ProjectDependency dependency = null; 279public static ProjectDependency FromAssembly(string assemblyPath) 284public static ProjectDependency FromProject(string projectPath) 289public static ProjectDependency FromPackage(string packageName, string version) 291return ProjectDependency.FromPackage(null, packageName, version); 294public static ProjectDependency FromPackage(string assemblyName, string packageName, string version) 299public static ProjectDependency FromCliTool(string packageName, string version) 373public bool Equals(ProjectDependency other) 380return this.CompareTo(obj as ProjectDependency) == 0; 395public int CompareTo(ProjectDependency other) 411public ProjectDependency Clone() 416internal static List<ProjectDependency> IgnorableDependencies = new List<ProjectDependency> 419ProjectDependency.FromPackage("System.Runtime.InteropServices.PInvoke","*"), 422ProjectDependency.FromPackage("Microsoft.EntityFrameworkCore.Design", "*"), 423ProjectDependency.FromPackage("Microsoft.EntityFrameworkCore.SqlServer.Design","*"), 424ProjectDependency.FromPackage("Microsoft.EntityFrameworkCore.Tools", "*"), 425ProjectDependency.FromPackage("Microsoft.VisualStudio.Web.CodeGeneration.Design","*"), 428ProjectDependency.FromPackage("dotnet-aspnet-codegenerator-design","*"), 431internal static void RemoveRedundantReferences(IList<ProjectDependency> dependencies) 437var dependency = dependencies[idx];
Shared\TargetFrameworkHelper.cs (29)
21internal static SortedDictionary<string, List<ProjectDependency>> NetCoreVersionReferenceTable = new SortedDictionary<string, List<ProjectDependency>> 23{"Legacy", new List<ProjectDependency> { 24ProjectDependency.FromPackage("System.ServiceModel.Duplex", "4.10.*" ), 25ProjectDependency.FromPackage("System.ServiceModel.Http", "4.10.*" ), 26ProjectDependency.FromPackage("System.ServiceModel.NetTcp", "4.10.*" ), 27ProjectDependency.FromPackage("System.ServiceModel.Security", "4.10.*"), 28ProjectDependency.FromPackage("System.ServiceModel.Federation", "4.10.*") 30{"Current", new List<ProjectDependency> { 31ProjectDependency.FromPackage("System.ServiceModel.Http", "8.*"), 32ProjectDependency.FromPackage("System.ServiceModel.NetTcp", "8.*"), 33ProjectDependency.FromPackage("System.ServiceModel.Primitives", "8.*") 37internal static List<ProjectDependency> FullFrameworkReferences = new List<ProjectDependency>() 39ProjectDependency.FromAssembly("System.ServiceModel"), 42internal static List<ProjectDependency> ServiceModelPackages = new List<ProjectDependency>() 44ProjectDependency.FromPackage("System.ServiceModel.Duplex", "*"), 45ProjectDependency.FromPackage("System.ServiceModel.Http", "*" ), 46ProjectDependency.FromPackage("System.ServiceModel.NetTcp", "*"), 47ProjectDependency.FromPackage("System.ServiceModel.Primitives", "*"), 48ProjectDependency.FromPackage("System.ServiceModel", "System.ServiceModel.Primitives", "*"), 49ProjectDependency.FromPackage("System.Private.ServiceModel", "*"), 50ProjectDependency.FromPackage("System.ServiceModel.Security", "*"), 51ProjectDependency.FromPackage("System.Xml.XmlSerializer", "*"), 52ProjectDependency.FromPackage("System.ServiceModel.Federation", "*"), 53ProjectDependency.FromPackage("System.ServiceModel.NetNamedPipe", "*"), 54ProjectDependency.FromPackage("System.ServiceModel.NetFramingBase", "*") 57public static IEnumerable<ProjectDependency> GetWcfProjectReferences(IEnumerable<string> targetFrameworks)
Tool.cs (2)
279foreach (var dep in dependencies) 310ProjectDependency.RemoveRedundantReferences(updateOptions.References);
dotnet-svcutil-lib.Tests (1)
ProjectUtils.cs (1)
64var svcutilPkgRef = ProjectDependency.FromPackage("dotnet-svcutil-lib", svcutilPkgVersion);