Beispiel #1
0
        internal 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 #2
0
        internal 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);

            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"));
            }
        }