Esempio n. 1
0
 /// <summary>
 /// Creates a new instance from package ID and 'latest'
 /// </summary>
 public PackageTarget(PackageId id)
     : this(id, new PackageVersion())
 {
 }
Esempio n. 2
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;
 }
Esempio n. 3
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;
 }