Beispiel #1
0
        internal override void Read(MSBuildItem item)
        {
            base.Read(item);
            string copyString = item.HasMetadata(Content.CopyToOutputDirectoryAtt) ? item.GetMetadata(Content.CopyToOutputDirectoryAtt) : null;
            string a;

            if ((a = copyString) != null)
            {
                if (!(a == "Always"))
                {
                    if (a == "PreserveNewest")
                    {
                        this.CopyToOutputDirectory = ContentCopy.IfNewer;
                    }
                }
                else
                {
                    this.CopyToOutputDirectory = ContentCopy.Always;
                }
            }
            else
            {
                this.CopyToOutputDirectory = ContentCopy.Never;
            }
            this.Link = (item.HasMetadata("Link") ? item.GetMetadata("Link") : null);
        }
Beispiel #2
0
        public override void Read(MSBuildItem item)
        {
            base.Read(item);

            var copyString = item.HasMetadata(CopyToOutputDirectoryAtt)
                ? item.GetMetadata(CopyToOutputDirectoryAtt)
                : null;

            switch (copyString)
            {
            case null:
                CopyToOutputDirectory = ContentCopy.Never;
                break;

            case "Always":
                CopyToOutputDirectory = ContentCopy.Always;
                break;

            case "PreserveNewest":
                CopyToOutputDirectory = ContentCopy.IfNewer;
                break;
            }

            Link = item.HasMetadata(LinkAtt) ? item.GetMetadata(LinkAtt) : null;
        }
Beispiel #3
0
        internal override void Read(MSBuildItem item)
        {
            base.Read(item);

            ProjectName = item.GetMetadata("Name");
            var raw = item.GetMetadata("Project").TrimStart('{').TrimEnd('}');

            ProjectGuid = Guid.Parse(raw);
        }
Beispiel #4
0
        internal override void Read(MSBuildItem item)
        {
            base.Read(item);
            this.ProjectName = item.GetMetadata("Name");
            string raw = item.GetMetadata("Project").TrimStart(new char[]
            {
                '{'
            }).TrimEnd(new char[]
            {
                '}'
            });

            this.ProjectGuid = Guid.Parse(raw);
        }
Beispiel #5
0
        public override void Read(MSBuildItem item)
        {
            base.Read(item);


            Link = item.HasMetadata(LinkAtt) ? item.GetMetadata(LinkAtt) : null;
        }
 internal override void Read(MSBuildItem item)
 {
     base.Read(item);
     this.HintPath    = (item.HasMetadata("HintPath") ? item.GetMetadata("HintPath") : null);
     this.FusionName  = (item.HasMetadata("FusionName") ? item.GetMetadata("FusionName") : null);
     this.Aliases     = (item.HasMetadata("Aliases") ? item.GetMetadata("Aliases") : null);
     this.DisplayName = (item.HasMetadata("Name") ? item.GetMetadata("Name") : null);
     if (item.HasMetadata("SpecificVersion"))
     {
         this.SpecificVersion = new bool?(bool.Parse(item.GetMetadata("SpecificVersion")));
     }
     if (item.HasMetadata("Private"))
     {
         this.Private = new bool?(bool.Parse(item.GetMetadata("Private")));
     }
 }
Beispiel #7
0
        public override void Read(MSBuildItem item)
        {
            base.Read(item);


            HintPath    = item.HasMetadata(HintPathAtt) ? item.GetMetadata(HintPathAtt) : null;
            FusionName  = item.HasMetadata("FusionName") ? item.GetMetadata("FusionName") : null;
            Aliases     = item.HasMetadata("Aliases") ? item.GetMetadata("Aliases") : null;
            DisplayName = item.HasMetadata("Name") ? item.GetMetadata("Name") : null;

            if (item.HasMetadata("SpecificVersion"))
            {
                SpecificVersion = bool.Parse(item.GetMetadata("SpecificVersion"));
            }

            if (item.HasMetadata("Private"))
            {
                Private = bool.Parse(item.GetMetadata("Private"));
            }
        }
Beispiel #8
0
 internal override void Read(MSBuildItem item)
 {
     base.Read(item);
     this.Link = (item.HasMetadata("Link") ? item.GetMetadata("Link") : null);
 }