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);
147 references to ProjectDependency
dotnet-svcutil-lib (146)
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)
619
var references = await this.Project.ResolveProjectReferencesAsync(
ProjectDependency
.IgnorableDependencies, logger, cancellationToken).ConfigureAwait(false);
816
foreach (
ProjectDependency
reference in loadableReferences)
Shared\MSBuildProj.cs (26)
55
private SortedSet<
ProjectDependency
> _dependencies = new SortedSet<
ProjectDependency
>();
56
public IEnumerable<
ProjectDependency
> Dependencies { get { return _dependencies; } }
267
if (!
ProjectDependency
.IsValidVersion(version))
272
ProjectDependency
packageDep =
ProjectDependency
.FromPackage(packageName, version);
285
ProjectDependency
packageDep =
ProjectDependency
.FromCliTool(packageName, version);
295
ProjectDependency
projectDep =
ProjectDependency
.FromProject(projectPath);
358
ProjectDependency
projectDep =
ProjectDependency
.FromAssembly(binReference);
517
public bool AddDependency(
ProjectDependency
dependency, bool copyInternalAssets = false)
767
public async Task<IEnumerable<
ProjectDependency
>> ResolveProjectReferencesAsync(IEnumerable<
ProjectDependency
> excludeDependencies, ILogger logger, CancellationToken cancellationToken)
771
IEnumerable<
ProjectDependency
> dependencies = null;
775
excludeDependencies = new List<
ProjectDependency
>();
791
dependencies = new List<
ProjectDependency
>();
800
private async Task<List<
ProjectDependency
>> ResolvePackageReferencesAsync(ILogger logger, CancellationToken cancellationToken)
806
var packageDependencies = new List<
ProjectDependency
>();
835
var
dependency =
ProjectDependency
.FromPackage(Path.GetFileNameWithoutExtension(compiletimeAssembly.Path), lib.Name, lib.Version.ToNormalizedString());
878
private async Task<List<
ProjectDependency
>> ResolveAssemblyReferencesAsync(ILogger logger, CancellationToken cancellationToken)
884
var assemblyDependencies = new List<
ProjectDependency
>();
920
ProjectDependency
dependency = null;
931
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 (77)
27
internal static SortedDictionary<Version, List<
ProjectDependency
>> NetCoreVersionReferenceTable = new SortedDictionary<Version, List<
ProjectDependency
>>
29
{new Version("1.0"), new List<
ProjectDependency
> {
30
ProjectDependency
.FromPackage("System.ServiceModel.Duplex", "4.0.*" ),
31
ProjectDependency
.FromPackage("System.ServiceModel.Http", "4.1.*" ),
32
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "4.1.*" ),
33
ProjectDependency
.FromPackage("System.ServiceModel.Security", "4.0.*"),
34
ProjectDependency
.FromPackage("System.Xml.XmlSerializer", "4.0.*" ),
36
{new Version("1.1"), new List<
ProjectDependency
> {
37
ProjectDependency
.FromPackage("System.ServiceModel.Duplex", "4.3.*" ),
38
ProjectDependency
.FromPackage("System.ServiceModel.Http", "4.3.*" ),
39
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "4.3.*" ),
40
ProjectDependency
.FromPackage("System.ServiceModel.Security", "4.3.*"),
41
ProjectDependency
.FromPackage("System.Xml.XmlSerializer", "4.3.*" ),
43
{new Version("2.0"), new List<
ProjectDependency
> {
44
ProjectDependency
.FromPackage("System.ServiceModel.Duplex", "4.4.*" ),
45
ProjectDependency
.FromPackage("System.ServiceModel.Http", "4.4.*" ),
46
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "4.4.*" ),
47
ProjectDependency
.FromPackage("System.ServiceModel.Security", "4.4.*"),
49
{new Version("2.1"), new List<
ProjectDependency
> {
50
ProjectDependency
.FromPackage("System.ServiceModel.Duplex", "4.6.*" ),
51
ProjectDependency
.FromPackage("System.ServiceModel.Http", "4.6.*" ),
52
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "4.6.*" ),
53
ProjectDependency
.FromPackage("System.ServiceModel.Security", "4.6.*"),
55
{new Version("3.1"), new List<
ProjectDependency
> {
56
ProjectDependency
.FromPackage("System.ServiceModel.Duplex", "4.7.*" ),
57
ProjectDependency
.FromPackage("System.ServiceModel.Http", "4.7.*" ),
58
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "4.7.*" ),
59
ProjectDependency
.FromPackage("System.ServiceModel.Security", "4.7.*"),
61
{new Version("5.0"), new List<
ProjectDependency
> {
62
ProjectDependency
.FromPackage("System.ServiceModel.Duplex", "4.8.*" ),
63
ProjectDependency
.FromPackage("System.ServiceModel.Http", "4.8.*" ),
64
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "4.8.*" ),
65
ProjectDependency
.FromPackage("System.ServiceModel.Security", "4.8.*"),
66
ProjectDependency
.FromPackage("System.ServiceModel.Federation", "4.8.*")
68
{new Version("6.0"), new List<
ProjectDependency
> {
69
ProjectDependency
.FromPackage("System.ServiceModel.Http", "6.2.*"),
70
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "6.2.*"),
71
ProjectDependency
.FromPackage("System.ServiceModel.NetNamedPipe", "6.2.*"),
72
ProjectDependency
.FromPackage("System.ServiceModel.Primitives", "6.2.*"),
73
ProjectDependency
.FromPackage("System.ServiceModel.Federation", "6.2.*"),
74
ProjectDependency
.FromPackage("System.ServiceModel.UnixDomainSocket", "6.2.*"),
75
ProjectDependency
.FromPackage("System.Web.Services.Description", "6.2.*")
77
{new Version("7.0"), new List<
ProjectDependency
> {
78
ProjectDependency
.FromPackage("System.ServiceModel.Http", "6.2.*"),
79
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "6.2.*"),
80
ProjectDependency
.FromPackage("System.ServiceModel.NetNamedPipe", "6.2.*"),
81
ProjectDependency
.FromPackage("System.ServiceModel.Primitives", "6.2.*"),
82
ProjectDependency
.FromPackage("System.ServiceModel.Federation", "6.2.*"),
83
ProjectDependency
.FromPackage("System.ServiceModel.UnixDomainSocket", "6.2.*"),
84
ProjectDependency
.FromPackage("System.Web.Services.Description", "6.2.*")
86
{new Version("8.0"), new List<
ProjectDependency
> {
87
ProjectDependency
.FromPackage("System.ServiceModel.Http", "8.*"),
88
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "8.*"),
89
ProjectDependency
.FromPackage("System.ServiceModel.NetNamedPipe", "8.*"),
90
ProjectDependency
.FromPackage("System.ServiceModel.Primitives", "8.*"),
91
ProjectDependency
.FromPackage("System.ServiceModel.Federation", "8.*"),
92
ProjectDependency
.FromPackage("System.ServiceModel.UnixDomainSocket", "8.*"),
93
ProjectDependency
.FromPackage("System.Web.Services.Description", "8.*")
97
internal static List<
ProjectDependency
> FullFrameworkReferences = new List<
ProjectDependency
>()
99
ProjectDependency
.FromAssembly("System.ServiceModel"),
102
internal static List<
ProjectDependency
> ServiceModelPackages = new List<
ProjectDependency
>()
104
ProjectDependency
.FromPackage("System.ServiceModel.Duplex", "*"),
105
ProjectDependency
.FromPackage("System.ServiceModel.Http", "*" ),
106
ProjectDependency
.FromPackage("System.ServiceModel.NetTcp", "*"),
107
ProjectDependency
.FromPackage("System.ServiceModel.Primitives", "*"),
108
ProjectDependency
.FromPackage("System.ServiceModel", "System.ServiceModel.Primitives", "*"),
109
ProjectDependency
.FromPackage("System.Private.ServiceModel", "*"),
110
ProjectDependency
.FromPackage("System.ServiceModel.Security", "*"),
111
ProjectDependency
.FromPackage("System.Xml.XmlSerializer", "*"),
112
ProjectDependency
.FromPackage("System.ServiceModel.Federation", "*"),
113
ProjectDependency
.FromPackage("System.ServiceModel.NetNamedPipe", "*"),
114
ProjectDependency
.FromPackage("System.ServiceModel.NetFramingBase", "*")
121
public static IEnumerable<
ProjectDependency
> GetWcfProjectReferences(string targetFramework)
123
IEnumerable<
ProjectDependency
> dependencies = null;
Tool.cs (2)
279
foreach (
var
dep in dependencies)
325
ProjectDependency
.RemoveRedundantReferences(updateOptions.References);
dotnet-svcutil-lib.Tests (1)
ProjectUtils.cs (1)
64
var
svcutilPkgRef = ProjectDependency.FromPackage("dotnet-svcutil-lib", svcutilPkgVersion);