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