public ManagedCodeConventions(RuntimeGraph runtimeGraph) { _runtimeGraph = runtimeGraph; var props = new Dictionary <string, ContentPropertyDefinition>(); props[AnyProperty.Name] = AnyProperty; props[AssemblyProperty.Name] = AssemblyProperty; props[LocaleProperty.Name] = LocaleProperty; props[MSBuildProperty.Name] = MSBuildProperty; props[SatelliteAssemblyProperty.Name] = SatelliteAssemblyProperty; props[CodeLanguageProperty.Name] = CodeLanguageProperty; props[PropertyNames.RuntimeIdentifier] = new ContentPropertyDefinition( PropertyNames.RuntimeIdentifier, parser: (o, t) => o, // Identity parser, all strings are valid runtime ids :) compatibilityTest: RuntimeIdentifier_CompatibilityTest); props[PropertyNames.TargetFrameworkMoniker] = new ContentPropertyDefinition( PropertyNames.TargetFrameworkMoniker, parser: TargetFrameworkName_Parser, compatibilityTest: TargetFrameworkName_CompatibilityTest, compareTest: TargetFrameworkName_NearestCompareTest); Properties = new ReadOnlyDictionary <string, ContentPropertyDefinition>(props); Criteria = new ManagedCodeCriteria(this); Patterns = new ManagedCodePatterns(this); }
public ManagedCodeConventions(RuntimeGraph runtimeGraph) { _runtimeGraph = runtimeGraph; var props = new Dictionary <string, ContentPropertyDefinition>(); props[TfmProperty.Name] = TfmProperty; props[AnyProperty.Name] = AnyProperty; props[AssemblyProperty.Name] = AssemblyProperty; props[PropertyNames.RuntimeIdentifier] = new ContentPropertyDefinition( PropertyNames.RuntimeIdentifier, compatibilityTest: RuntimeIdentifier_CompatibilityTest); Properties = new ReadOnlyDictionary <string, ContentPropertyDefinition>(props); Criteria = new ManagedCodeCriteria(this); Patterns = new ManagedCodePatterns(this); }
public ManagedCodeConventions(RuntimeGraph runtimeGraph) { _runtimeGraph = runtimeGraph; var props = new Dictionary<string, ContentPropertyDefinition>(); props[TfmProperty.Name] = TfmProperty; props[AnyProperty.Name] = AnyProperty; props[AssemblyProperty.Name] = AssemblyProperty; props[LocaleProperty.Name] = LocaleProperty; props[MSBuildProperty.Name] = MSBuildProperty; props[PropertyNames.RuntimeIdentifier] = new ContentPropertyDefinition( PropertyNames.RuntimeIdentifier, compatibilityTest: RuntimeIdentifier_CompatibilityTest); Properties = new ReadOnlyDictionary<string, ContentPropertyDefinition>(props); Criteria = new ManagedCodeCriteria(this); Patterns = new ManagedCodePatterns(this); }