﻿using System;
using System.Xml.Linq;

namespace Buildalyzer.Construction
{
    public class PackageReference : IPackageReference
    {
        public string Name { get; }
        public string Version { get; }

        internal PackageReference(XElement packageReferenceElement)
        {
            this.Name = packageReferenceElement.GetAttributeValue("Include");
            this.Version = packageReferenceElement.GetAttributeValue("Version");
        }
    }
}

﻿using System;
using System.Xml.Linq;

namespace Buildalyzer.Construction
{
    public class PackageReference : IPackageReference
    {
        public string Name { get; }
        public string Version { get; }

        internal PackageReference(XElement packageReferenceElement)
        {
            this.Name = packageReferenceElement.GetAttributeValue("Include") ?? packageReferenceElement.GetAttributeValue("Update");
            this.Version = packageReferenceElement.GetAttributeValue("Version");
        }
    }
}

Add support for update property
Add support for update property
