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); }
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; }
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"))); } }
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")); } }
internal override void Read(MSBuildItem item) { base.Read(item); this.Link = (item.HasMetadata("Link") ? item.GetMetadata("Link") : null); }