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