Skip to content

Commit ad6f752

Browse files
authored
Fix toggle for including sample content in template (#25549)
### Description of Change This fixes the toggle for including sample content in the template. In #25419 some last-minute changes were made to not make the sample content show up by default, but that introduced a bug where you couldn't get the sample content to show up at all using Visual Studio. With this change the sample content can optionally be included again in Visual Studio by using the checkbox and through the CLI by specifying either `--sample-content` or `-sc`. Also the not used `Empty` switch was removed as well as the `SampleContent` variable which did not serve any additional purpose.
2 parents f269ef3 + 58f5b40 commit ad6f752

25 files changed

Lines changed: 44 additions & 70 deletions

src/Templates/src/templates/maui-mobile/.template.config/dotnetcli.host.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
"Framework": {
55
"longName": "framework"
66
},
7-
"Empty": {
8-
"longName": "empty"
9-
},
107
"IncludeSampleContent": {
11-
"isHidden": true
8+
9+
"longName": "sample-content",
10+
"shortName": "sc"
1211
},
1312
"skipRestore": {
1413
"longName": "no-restore",

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.cs.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.de.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.es.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.fr.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.it.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.ja.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

src/Templates/src/templates/maui-mobile/.template.config/localize/templatestrings.ko.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"symbols/Framework/choices/DOTNET_TFM_VALUE/description": "Target DOTNET_TFM_VALUE",
1111
"symbols/IncludeSampleContent/displayName": "_Include sample content",
1212
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and functionality to demonstrate basic usage patterns.",
13-
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
1413
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create."
1514
}

0 commit comments

Comments
 (0)