Skip to content

Commit 539c6a0

Browse files
committed
Bring back the old template style
1 parent 467e4e0 commit 539c6a0

19 files changed

+71
-27
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,11 @@ The initial commit of this repository contains the template as it is delivered t
66

77
In the following commits attempts are made to bring back the template as it was in earlier versions.
88

9+
## Installing
10+
dotnet new --install "PATH_TO_NUPKG_FILE"
11+
12+
## Uninstalling
13+
dotnet new --uninstall "PATH_TO_NUPKG_FILE"
14+
915
## Contributing
10-
Contributions are welcome, especially for the language files, as i just ran the english version through Google Translate.
16+
Contributions are welcome, especially for the language files, as i just ran the english files through Google Translate.

src/ClassicConsoleTemplate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageType>Template</PackageType>
5-
<PackageVersion>1.0</PackageVersion>
5+
<PackageVersion>1.0.0</PackageVersion>
66
<PackageId>ClassicConsoleTemplate</PackageId>
77
<Title>ClassicConsoleTemplate</Title>
88
<Authors>Balkoth</Authors>

src/templates/classic_console_template/.template.config/dotnetcli.host.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"UseProgramMain": {
2121
"longName": "use-program-main",
2222
"shortName": ""
23+
},
24+
"DoNotUseImplicitUsings": {
25+
"longName": "do-not-use-implicit-usings",
26+
"shortName": ""
2327
}
2428
},
2529
"usageExamples": [

src/templates/classic_console_template/.template.config/ide.host.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
{
1212
"id": "UseProgramMain",
1313
"isVisible": "true"
14+
},
15+
{
16+
"id": "DoNotUseImplicitUsings",
17+
"isVisible": "true"
1418
}
1519
]
1620
}

src/templates/classic_console_template/.template.config/localize/templatestrings.cs.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"author": "Microsoft",
2+
"author": "Balkoth",
33
"name": "Konzolová aplikace",
44
"description": "Projekt pro vytvoření aplikace příkazového řádku, která běží na platformě .NET v systémech Windows, Linux a macOS",
55
"symbols/TargetFrameworkOverride/description": "Přepíše cílovou architekturu.",
@@ -14,6 +14,8 @@
1414
"symbols/skipRestore/displayName": "Přeskočit obnovení",
1515
"symbols/UseProgramMain/description": "Určuje, jestli se má místo příkazů nejvyšší úrovně generovat explicitní třída Program a metoda Main.",
1616
"symbols/UseProgramMain/displayName": "Nepoužívat příkazy nejvyšší úrovně",
17+
"symbols/DoNotUseImplicitUsings/description": "Určuje, zda se má generovat soubor projektu se zadaným implicitním využitím.",
18+
"symbols/DoNotUseImplicitUsings/displayName": "Nepoužívejte implicitní způsoby použití",
1719
"postActions/restore/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
1820
"postActions/restore/manualInstructions/default/text": "Spustit dotnet restore",
1921
"postActions/open-file/description": "Otevře Program.cs v editoru."

src/templates/classic_console_template/.template.config/localize/templatestrings.de.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"author": "Microsoft",
2+
"author": "Balkoth",
33
"name": "Konsolen-App",
44
"description": "Ein Projekt zum Erstellen einer Befehlszeilenanwendung, die mit .NET unter Windows, Linux und macOS ausgeführt werden kann",
55
"symbols/TargetFrameworkOverride/description": "Überschreibt das Zielframework",
@@ -14,6 +14,8 @@
1414
"symbols/skipRestore/displayName": "Wiederherstellung überspringen",
1515
"symbols/UseProgramMain/description": "Gibt an, ob anstelle von Anweisungen der obersten Ebene eine explizite Programmklasse und eine Main-Methode generiert werden soll.",
1616
"symbols/UseProgramMain/displayName": "Keine Anweisungen der obersten Ebene verwenden",
17+
"symbols/DoNotUseImplicitUsings/description": "Gibt an ob die Projektdatei mit impliziten using-Anweisungen erzeugt wird.",
18+
"symbols/DoNotUseImplicitUsings/displayName": "Keine impliziten using-Anweisungen verwenden",
1719
"postActions/restore/description": "Stellt die NuGet-Pakete wieder her, die für dieses Projekt erforderlich sind.",
1820
"postActions/restore/manualInstructions/default/text": "„dotnet restore“ ausführen",
1921
"postActions/open-file/description": "Öffnet „Program.cs“ im Editor"

src/templates/classic_console_template/.template.config/localize/templatestrings.en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"author": "Microsoft",
2+
"author": "Balkoth",
33
"name": "Console App",
44
"description": "A project for creating a command-line application that can run on .NET on Windows, Linux and macOS",
55
"symbols/TargetFrameworkOverride/description": "Overrides the target framework",
@@ -14,6 +14,8 @@
1414
"symbols/skipRestore/displayName": "Skip restore",
1515
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.",
1616
"symbols/UseProgramMain/displayName": "Do not use top-level statements",
17+
"symbols/DoNotUseImplicitUsings/description": "Whether to generate the project file with implicit usings specified.",
18+
"symbols/DoNotUseImplicitUsings/displayName": "Do not use implicit usings",
1719
"postActions/restore/description": "Restore NuGet packages required by this project.",
1820
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'",
1921
"postActions/open-file/description": "Opens Program.cs in the editor"

src/templates/classic_console_template/.template.config/localize/templatestrings.es.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"author": "Microsoft",
2+
"author": "Balkoth",
33
"name": "Aplicación de consola",
44
"description": "Proyecto para crear una aplicación de línea de comandos que se puede ejecutar en .NET en Windows, Linux y macOS.",
55
"symbols/TargetFrameworkOverride/description": "Invalida la plataforma de destino",
@@ -14,6 +14,8 @@
1414
"symbols/skipRestore/displayName": "Omitir restauración",
1515
"symbols/UseProgramMain/description": "Indica si se debe generar una clase Program explícita y un método Main en lugar de instrucciones de nivel superior.",
1616
"symbols/UseProgramMain/displayName": "No usar instrucciones de nivel superior",
17+
"symbols/DoNotUseImplicitUsings/description": "Si generar el archivo de proyecto con usos implícitos especificados.",
18+
"symbols/DoNotUseImplicitUsings/displayName": "No usar usos implícitos",
1719
"postActions/restore/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
1820
"postActions/restore/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
1921
"postActions/open-file/description": "Abre Program.cs en el editor"

src/templates/classic_console_template/.template.config/localize/templatestrings.fr.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"author": "Microsoft",
2+
"author": "Balkoth",
33
"name": "Application console",
44
"description": "Projet de création d'une application en ligne de commande pouvant s'exécuter sur .NET sur Windows, Linux et macOS",
55
"symbols/TargetFrameworkOverride/description": "Remplace l’infrastructure cible",
@@ -14,6 +14,8 @@
1414
"symbols/skipRestore/displayName": "Ignorer la restauration",
1515
"symbols/UseProgramMain/description": "Indique s’il faut générer une classe Programme explicite et une méthode Main au lieu d’instructions de niveau supérieur.",
1616
"symbols/UseProgramMain/displayName": "N’utilisez pas d’instructions de niveau supérieur",
17+
"symbols/DoNotUseImplicitUsings/description": "Indique s'il faut générer le fichier de projet avec des utilisations implicites spécifiées.",
18+
"symbols/DoNotUseImplicitUsings/displayName": "N'utilisez pas d'utilisations implicites",
1719
"postActions/restore/description": "Restaurez les packages NuGet requis par ce projet.",
1820
"postActions/restore/manualInstructions/default/text": "Exécuter « dotnet restore »",
1921
"postActions/open-file/description": "Ouvre Program.cs dans l’éditeur"

src/templates/classic_console_template/.template.config/localize/templatestrings.it.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"author": "Microsoft",
2+
"author": "Balkoth",
33
"name": "App console",
44
"description": "Progetto per la creazione di un'applicazione da riga di comando eseguibile in .NET in Windows, Linux e macOS",
55
"symbols/TargetFrameworkOverride/description": "Ignora il framework di destinazione",
@@ -14,6 +14,8 @@
1414
"symbols/skipRestore/displayName": "Salta ripristino",
1515
"symbols/UseProgramMain/description": "Indica se generare una classe Program esplicita e un metodo Main anziché istruzioni di primo livello.",
1616
"symbols/UseProgramMain/displayName": "Non usare istruzioni di primo livello",
17+
"symbols/DoNotUseImplicitUsings/description": "Indica se generare il file di progetto con gli utilizzi impliciti specificati.",
18+
"symbols/DoNotUseImplicitUsings/displayName": "Non usare utilizzi impliciti",
1719
"postActions/restore/description": "Ripristina i pacchetti NuGet richiesti da questo progetto.",
1820
"postActions/restore/manualInstructions/default/text": "Esegui 'dotnet restore'",
1921
"postActions/open-file/description": "Apre Program.cs nell'editor"

0 commit comments

Comments
 (0)