示例#1
0
 /// <summary>
 /// Creates a new dependency instance from the provided target
 /// </summary>
 public PackageTarget(PackageTarget target)
 {
     this.id           = target.id;
     this.version      = target.version;
     this.isDependency = true;
 }
示例#2
0
 /// <summary>
 /// Creates a new instance from package ID and version
 /// </summary>
 public PackageTarget(PackageId id, PackageVersion version, bool isDependency = false)
 {
     this.id           = id;
     this.version      = version;
     this.isDependency = isDependency;
 }