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