internal ManagedCodePatterns(ManagedCodeConventions conventions) { RuntimeAssemblies = new PatternSet( conventions.Properties, groupPatterns: new PatternDefinition[] { "runtimes/{rid}/lib/{tfm}/{any?}", "lib/{tfm}/{any?}", new PatternDefinition("lib/{assembly?}", defaults: new Dictionary<string, object> { { "tfm", new NuGetFramework(FrameworkConstants.FrameworkIdentifiers.Net, FrameworkConstants.EmptyVersion) } }) }, pathPatterns: new PatternDefinition[] { "runtimes/{rid}/lib/{tfm}/{assembly}", "lib/{tfm}/{assembly}", new PatternDefinition("lib/{assembly}", defaults: new Dictionary<string, object> { { "tfm", new NuGetFramework(FrameworkConstants.FrameworkIdentifiers.Net, FrameworkConstants.EmptyVersion) } }) }); CompileAssemblies = new PatternSet( conventions.Properties, groupPatterns: new PatternDefinition[] { "ref/{tfm}/{any?}", }, pathPatterns: new PatternDefinition[] { "ref/{tfm}/{assembly}", }); NativeLibraries = new PatternSet( conventions.Properties, groupPatterns: new PatternDefinition[] { "runtimes/{rid}/native/{any?}", "native/{any?}", }, pathPatterns: new PatternDefinition[] { "runtimes/{rid}/native/{any}", "native/{any}", }); ResourceAssemblies = new PatternSet( conventions.Properties, groupPatterns: new PatternDefinition[] { "runtimes/{rid}/lib/{tfm}/{locale?}/{any?}", "lib/{tfm}/{locale?}/{any?}" }, pathPatterns: new PatternDefinition[] { "runtimes/{rid}/lib/{tfm}/{locale}/{resources}", "lib/{tfm}/{locale}/{resources}" }); MSBuildFiles = new PatternSet( conventions.Properties, groupPatterns: new PatternDefinition[] { "build/{tfm}/{any?}", new PatternDefinition("build/{any?}", defaults: new Dictionary<string, object> { { "tfm", new NuGetFramework(FrameworkConstants.FrameworkIdentifiers.Net, FrameworkConstants.EmptyVersion) } }) }, pathPatterns: new PatternDefinition[] { "build/{tfm}/{msbuild}", new PatternDefinition("build/{msbuild}", defaults: new Dictionary<string, object> { { "tfm", new NuGetFramework(FrameworkConstants.FrameworkIdentifiers.Net, FrameworkConstants.EmptyVersion) } }) }); }
public IEnumerable <ContentItem> FindItems(PatternSet definition) { return(FindItemsImplementation(definition, _assets)); }