public FrameworkEntry StartProcessingAssembly(AssemblyDefinition assembly) { if (string.IsNullOrWhiteSpace(this.path)) { return(FrameworkEntry.Empty); } string assemblyPath = assembly.MainModule.FileName; string relativePath = assemblyPath.Replace(this.path, string.Empty); string shortPath = Path.GetDirectoryName(relativePath); if (shortPath.StartsWith(Path.DirectorySeparatorChar.ToString(), StringComparison.InvariantCultureIgnoreCase)) { shortPath = shortPath.Substring(1, shortPath.Length - 1); } var entry = frameworks.FirstOrDefault(f => f.Name.Equals(shortPath)); if (entry == null) { entry = new FrameworkEntry(frameworks) { Name = shortPath }; frameworks.Add(entry); } return(entry); }
public FrameworkTypeEntry(FrameworkEntry fx) { this.fx = fx; }
public EmptyTypeEntry(FrameworkEntry fx) : base(fx) { }