Skip to content

Commit bf6d102

Browse files
authored
Added *.slnx with Xml conditions to OperationConfigDefault. (#8863)
* Added *.slnx with Xml conditions to OperationConfigDefault. * Trying to fix whitespace problems * Whitespace fix using another editor
1 parent f478946 commit bf6d102

File tree

3 files changed

+17
-0
lines changed
  • src/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/OperationConfig
  • test
    • Microsoft.TemplateEngine.IDE.IntegrationTests
    • Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions

3 files changed

+17
-0
lines changed

src/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/OperationConfig/OperationConfigDefault.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ internal OperationConfigDefault(string glob, string flagPrefix, EvaluatorType ev
110110
new OperationConfigDefault("**/*.xaml", "<!--", EvaluatorType.CPP, ConditionalType.Xml),
111111
new OperationConfigDefault("**/*.axaml", "<!--", EvaluatorType.CPP, ConditionalType.Xml),
112112
new OperationConfigDefault("**/*.sln", "#-", EvaluatorType.CPP, ConditionalType.HashSignLineComment),
113+
new OperationConfigDefault("**/*.slnx", "#-", EvaluatorType.CPP, ConditionalType.Xml),
113114
new OperationConfigDefault("**/*.yaml", "#-", EvaluatorType.CPP, ConditionalType.HashSignLineComment),
114115
new OperationConfigDefault("**/*.yml", "#-", EvaluatorType.CPP, ConditionalType.HashSignLineComment),
115116
new OperationConfigDefault("**/Dockerfile", "#-", EvaluatorType.CPP, ConditionalType.HashSignLineComment),

test/Microsoft.TemplateEngine.IDE.IntegrationTests/End2EndTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,13 @@ common text
562562
@"# comment bar
563563
bar
564564
baz
565+
"
566+
},
567+
{
568+
"test.slnx",
569+
@"<!-- comment bar -->
570+
bar
571+
baz
565572
"
566573
},
567574
{
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!--#if (A) -->
2+
<!-- comment foo -->
3+
foo
4+
<!--#endif -->
5+
<!--#if (B)
6+
<!-- comment bar -- >
7+
bar
8+
#endif -->
9+
baz

0 commit comments

Comments
 (0)