private void InitializeFallbackRule() { if ((this.configuredProject == null)) { return; } Microsoft.Build.Framework.XamlTypes.Rule unboundRule = Mbed.deserializedFallbackRule; if ((unboundRule == null)) { System.IO.Stream xamlStream = null; System.Reflection.Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly(); try { xamlStream = thisAssembly.GetManifestResourceStream("XamlRuleToCode:Mbed.xaml"); Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode root = ((Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode)(System.Xaml.XamlServices.Load(xamlStream))); System.Collections.Generic.IEnumerator<System.Object> ruleEnumerator = root.GetSchemaObjects(typeof(Microsoft.Build.Framework.XamlTypes.Rule)).GetEnumerator(); for ( ; ((unboundRule == null) && ruleEnumerator.MoveNext()); ) { Microsoft.Build.Framework.XamlTypes.Rule t = ((Microsoft.Build.Framework.XamlTypes.Rule)(ruleEnumerator.Current)); if (System.StringComparer.OrdinalIgnoreCase.Equals(t.Name, SchemaName)) { unboundRule = t; unboundRule.Name = "04cfacb1-99bb-47cd-b319-1e438608bc0c"; Mbed.deserializedFallbackRule = unboundRule; } } } finally { if ((xamlStream != null)) { ((System.IDisposable)(xamlStream)).Dispose(); } } } this.configuredProject.Services.AdditionalRuleDefinitions.AddRuleDefinition(unboundRule, "FallbackRuleCodeGenerationContext"); Microsoft.VisualStudio.ProjectSystem.Properties.IPropertyPagesCatalog catalog = this.configuredProject.Services.PropertyPagesCatalog.GetMemoryOnlyCatalog("FallbackRuleCodeGenerationContext"); this.fallbackRule = catalog.BindToContext(unboundRule.Name, this.file, this.itemType, this.itemName); }
private void InitializeFallbackRule() { if ((this.configuredProject is null)) { return; } Microsoft.Build.Framework.XamlTypes.Rule unboundRule = RazorConfiguration.deserializedFallbackRule; if ((unboundRule is null)) { System.IO.Stream xamlStream = null; System.Reflection.Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly(); try { xamlStream = thisAssembly.GetManifestResourceStream("XamlRuleToCode:RazorConfiguration.xaml"); Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode root = ((Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode)(System.Xaml.XamlServices.Load(xamlStream))); System.Collections.Generic.IEnumerator <System.Object> ruleEnumerator = root.GetSchemaObjects(typeof(Microsoft.Build.Framework.XamlTypes.Rule)).GetEnumerator(); for ( ; ((unboundRule is null) && ruleEnumerator.MoveNext()); ) { Microsoft.Build.Framework.XamlTypes.Rule t = ((Microsoft.Build.Framework.XamlTypes.Rule)(ruleEnumerator.Current)); if (System.StringComparer.OrdinalIgnoreCase.Equals(t.Name, SchemaName)) { unboundRule = t; unboundRule.Name = "f269edfbdecc0079d5f539c22552711e194f39b2367903515ae5440a64b20a0f"; RazorConfiguration.deserializedFallbackRule = unboundRule; } } }
private void InitializeFallbackRule() { if ((this.configuredProject is null)) { return; } Microsoft.Build.Framework.XamlTypes.Rule unboundRule = RazorGeneral.deserializedFallbackRule; if ((unboundRule is null)) { System.IO.Stream xamlStream = null; System.Reflection.Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly(); try { xamlStream = thisAssembly.GetManifestResourceStream("XamlRuleToCode:RazorGeneral.xaml"); Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode root = ((Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode)(System.Xaml.XamlServices.Load(xamlStream))); System.Collections.Generic.IEnumerator <System.Object> ruleEnumerator = root.GetSchemaObjects(typeof(Microsoft.Build.Framework.XamlTypes.Rule)).GetEnumerator(); for ( ; ((unboundRule is null) && ruleEnumerator.MoveNext()); ) { Microsoft.Build.Framework.XamlTypes.Rule t = ((Microsoft.Build.Framework.XamlTypes.Rule)(ruleEnumerator.Current)); if (System.StringComparer.OrdinalIgnoreCase.Equals(t.Name, SchemaName)) { unboundRule = t; unboundRule.Name = "6851f2efc446915a1288ec829aa82f7dc9bcfc6addb65b97866a1bc9e30b3348"; RazorGeneral.deserializedFallbackRule = unboundRule; } } }
private void InitializeFallbackRule() { if ((this.configuredProject is null)) { return; } Microsoft.Build.Framework.XamlTypes.Rule unboundRule = RazorComponentWithTargetPath.deserializedFallbackRule; if ((unboundRule is null)) { System.IO.Stream xamlStream = null; System.Reflection.Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly(); try { xamlStream = thisAssembly.GetManifestResourceStream("XamlRuleToCode:RazorComponentWithTargetPath.xaml"); Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode root = ((Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode)(System.Xaml.XamlServices.Load(xamlStream))); System.Collections.Generic.IEnumerator <System.Object> ruleEnumerator = root.GetSchemaObjects(typeof(Microsoft.Build.Framework.XamlTypes.Rule)).GetEnumerator(); for ( ; ((unboundRule is null) && ruleEnumerator.MoveNext()); ) { Microsoft.Build.Framework.XamlTypes.Rule t = ((Microsoft.Build.Framework.XamlTypes.Rule)(ruleEnumerator.Current)); if (System.StringComparer.OrdinalIgnoreCase.Equals(t.Name, SchemaName)) { unboundRule = t; unboundRule.Name = "7bce92b9d442fe435263d738937cc0845b32e8219c968e23697081db5a869f4a"; RazorComponentWithTargetPath.deserializedFallbackRule = unboundRule; } } }
private void InitializeFallbackRule() { if ((this.configuredProject is null)) { return; } Microsoft.Build.Framework.XamlTypes.Rule unboundRule = RazorGenerateWithTargetPath.deserializedFallbackRule; if ((unboundRule is null)) { System.IO.Stream xamlStream = null; System.Reflection.Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly(); try { xamlStream = thisAssembly.GetManifestResourceStream("XamlRuleToCode:RazorGenerateWithTargetPath.xaml"); Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode root = ((Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode)(System.Xaml.XamlServices.Load(xamlStream))); System.Collections.Generic.IEnumerator <System.Object> ruleEnumerator = root.GetSchemaObjects(typeof(Microsoft.Build.Framework.XamlTypes.Rule)).GetEnumerator(); for ( ; ((unboundRule is null) && ruleEnumerator.MoveNext()); ) { Microsoft.Build.Framework.XamlTypes.Rule t = ((Microsoft.Build.Framework.XamlTypes.Rule)(ruleEnumerator.Current)); if (System.StringComparer.OrdinalIgnoreCase.Equals(t.Name, SchemaName)) { unboundRule = t; unboundRule.Name = "4325a10cce970a389c33b97140c4307d2e10664e053c75cf9e0e0fd08288774f"; RazorGenerateWithTargetPath.deserializedFallbackRule = unboundRule; } } }
private void InitializeFallbackRule() { if ((this.configuredProject is null)) { return; } Microsoft.Build.Framework.XamlTypes.Rule unboundRule = RazorExtension.deserializedFallbackRule; if ((unboundRule is null)) { System.IO.Stream xamlStream = null; System.Reflection.Assembly thisAssembly = System.Reflection.Assembly.GetExecutingAssembly(); try { xamlStream = thisAssembly.GetManifestResourceStream("XamlRuleToCode:RazorExtension.xaml"); Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode root = ((Microsoft.Build.Framework.XamlTypes.IProjectSchemaNode)(System.Xaml.XamlServices.Load(xamlStream))); System.Collections.Generic.IEnumerator <System.Object> ruleEnumerator = root.GetSchemaObjects(typeof(Microsoft.Build.Framework.XamlTypes.Rule)).GetEnumerator(); for ( ; ((unboundRule is null) && ruleEnumerator.MoveNext()); ) { Microsoft.Build.Framework.XamlTypes.Rule t = ((Microsoft.Build.Framework.XamlTypes.Rule)(ruleEnumerator.Current)); if (System.StringComparer.OrdinalIgnoreCase.Equals(t.Name, SchemaName)) { unboundRule = t; unboundRule.Name = "e8ad5dd707beca947f7c014baa70b46c1d7a7fd6c8b49a5511ab299d8e1a3c70"; RazorExtension.deserializedFallbackRule = unboundRule; } } }