Skip to content

Commit

Permalink
Bring back the old template style
Browse files Browse the repository at this point in the history
  • Loading branch information
Balkoth committed Aug 11, 2022
1 parent 467e4e0 commit 539c6a0
Show file tree
Hide file tree
Showing 19 changed files with 71 additions and 27 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@ The initial commit of this repository contains the template as it is delivered t

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

## Installing
dotnet new --install "PATH_TO_NUPKG_FILE"

## Uninstalling
dotnet new --uninstall "PATH_TO_NUPKG_FILE"

## Contributing
Contributions are welcome, especially for the language files, as i just ran the english version through Google Translate.
Contributions are welcome, especially for the language files, as i just ran the english files through Google Translate.
2 changes: 1 addition & 1 deletion src/ClassicConsoleTemplate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>1.0</PackageVersion>
<PackageVersion>1.0.0</PackageVersion>
<PackageId>ClassicConsoleTemplate</PackageId>
<Title>ClassicConsoleTemplate</Title>
<Authors>Balkoth</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"UseProgramMain": {
"longName": "use-program-main",
"shortName": ""
},
"DoNotUseImplicitUsings": {
"longName": "do-not-use-implicit-usings",
"shortName": ""
}
},
"usageExamples": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
{
"id": "UseProgramMain",
"isVisible": "true"
},
{
"id": "DoNotUseImplicitUsings",
"isVisible": "true"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Konzolová aplikace",
"description": "Projekt pro vytvoření aplikace příkazového řádku, která běží na platformě .NET v systémech Windows, Linux a macOS",
"symbols/TargetFrameworkOverride/description": "Přepíše cílovou architekturu.",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Přeskočit obnovení",
"symbols/UseProgramMain/description": "Určuje, jestli se má místo příkazů nejvyšší úrovně generovat explicitní třída Program a metoda Main.",
"symbols/UseProgramMain/displayName": "Nepoužívat příkazy nejvyšší úrovně",
"symbols/DoNotUseImplicitUsings/description": "Určuje, zda se má generovat soubor projektu se zadaným implicitním využitím.",
"symbols/DoNotUseImplicitUsings/displayName": "Nepoužívejte implicitní způsoby použití",
"postActions/restore/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
"postActions/restore/manualInstructions/default/text": "Spustit dotnet restore",
"postActions/open-file/description": "Otevře Program.cs v editoru."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Konsolen-App",
"description": "Ein Projekt zum Erstellen einer Befehlszeilenanwendung, die mit .NET unter Windows, Linux und macOS ausgeführt werden kann",
"symbols/TargetFrameworkOverride/description": "Überschreibt das Zielframework",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Wiederherstellung überspringen",
"symbols/UseProgramMain/description": "Gibt an, ob anstelle von Anweisungen der obersten Ebene eine explizite Programmklasse und eine Main-Methode generiert werden soll.",
"symbols/UseProgramMain/displayName": "Keine Anweisungen der obersten Ebene verwenden",
"symbols/DoNotUseImplicitUsings/description": "Gibt an ob die Projektdatei mit impliziten using-Anweisungen erzeugt wird.",
"symbols/DoNotUseImplicitUsings/displayName": "Keine impliziten using-Anweisungen verwenden",
"postActions/restore/description": "Stellt die NuGet-Pakete wieder her, die für dieses Projekt erforderlich sind.",
"postActions/restore/manualInstructions/default/text": "„dotnet restore“ ausführen",
"postActions/open-file/description": "Öffnet „Program.cs“ im Editor"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Console App",
"description": "A project for creating a command-line application that can run on .NET on Windows, Linux and macOS",
"symbols/TargetFrameworkOverride/description": "Overrides the target framework",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Skip restore",
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.",
"symbols/UseProgramMain/displayName": "Do not use top-level statements",
"symbols/DoNotUseImplicitUsings/description": "Whether to generate the project file with implicit usings specified.",
"symbols/DoNotUseImplicitUsings/displayName": "Do not use implicit usings",
"postActions/restore/description": "Restore NuGet packages required by this project.",
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'",
"postActions/open-file/description": "Opens Program.cs in the editor"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Aplicación de consola",
"description": "Proyecto para crear una aplicación de línea de comandos que se puede ejecutar en .NET en Windows, Linux y macOS.",
"symbols/TargetFrameworkOverride/description": "Invalida la plataforma de destino",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Omitir restauración",
"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.",
"symbols/UseProgramMain/displayName": "No usar instrucciones de nivel superior",
"symbols/DoNotUseImplicitUsings/description": "Si generar el archivo de proyecto con usos implícitos especificados.",
"symbols/DoNotUseImplicitUsings/displayName": "No usar usos implícitos",
"postActions/restore/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
"postActions/restore/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
"postActions/open-file/description": "Abre Program.cs en el editor"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Application console",
"description": "Projet de création d'une application en ligne de commande pouvant s'exécuter sur .NET sur Windows, Linux et macOS",
"symbols/TargetFrameworkOverride/description": "Remplace l’infrastructure cible",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Ignorer la restauration",
"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.",
"symbols/UseProgramMain/displayName": "N’utilisez pas d’instructions de niveau supérieur",
"symbols/DoNotUseImplicitUsings/description": "Indique s'il faut générer le fichier de projet avec des utilisations implicites spécifiées.",
"symbols/DoNotUseImplicitUsings/displayName": "N'utilisez pas d'utilisations implicites",
"postActions/restore/description": "Restaurez les packages NuGet requis par ce projet.",
"postActions/restore/manualInstructions/default/text": "Exécuter « dotnet restore »",
"postActions/open-file/description": "Ouvre Program.cs dans l’éditeur"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "App console",
"description": "Progetto per la creazione di un'applicazione da riga di comando eseguibile in .NET in Windows, Linux e macOS",
"symbols/TargetFrameworkOverride/description": "Ignora il framework di destinazione",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Salta ripristino",
"symbols/UseProgramMain/description": "Indica se generare una classe Program esplicita e un metodo Main anziché istruzioni di primo livello.",
"symbols/UseProgramMain/displayName": "Non usare istruzioni di primo livello",
"symbols/DoNotUseImplicitUsings/description": "Indica se generare il file di progetto con gli utilizzi impliciti specificati.",
"symbols/DoNotUseImplicitUsings/displayName": "Non usare utilizzi impliciti",
"postActions/restore/description": "Ripristina i pacchetti NuGet richiesti da questo progetto.",
"postActions/restore/manualInstructions/default/text": "Esegui 'dotnet restore'",
"postActions/open-file/description": "Apre Program.cs nell'editor"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "コンソール アプリ",
"description": "Windows、Linux、macOS 上の .NET で実行できるコマンド ライン アプリケーションを作成するためのプロジェクト",
"symbols/TargetFrameworkOverride/description": "ターゲット フレームワークをオーバーライドする",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "復元のスキップ",
"symbols/UseProgramMain/description": "最上位レベルのステートメントではなく、明示的な Program クラスと Main メソッドを生成するかどうか。",
"symbols/UseProgramMain/displayName": "最上位レベルのステートメントを使用しない",
"symbols/DoNotUseImplicitUsings/description": "暗黙的な using を指定してプロジェクト ファイルを生成するかどうか。",
"symbols/DoNotUseImplicitUsings/displayName": "暗黙の using を使用しない",
"postActions/restore/description": "このプロジェクトに必要な NuGet パッケージを復元します。",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' を実行する",
"postActions/open-file/description": "エディターで Program.cs を開く"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "콘솔 앱",
"description": "Windows, Linux 및 macOS의 .NET에서 실행할 수 있는 명령줄 응용 프로그램을 만들기 위한 프로젝트",
"symbols/TargetFrameworkOverride/description": "대상 프레임워크를 재정의합니다",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "복원 건너뛰기",
"symbols/UseProgramMain/description": "최상위 문 대신 명시적 Program 클래스 및 Main 메서드를 생성할지 여부입니다.",
"symbols/UseProgramMain/displayName": "최상위 문 사용 안 함",
"symbols/DoNotUseImplicitUsings/description": "암시적 사용이 지정된 프로젝트 파일을 생성할지 여부입니다.",
"symbols/DoNotUseImplicitUsings/displayName": "암시적 사용을 사용하지 마십시오.",
"postActions/restore/description": "이 프로젝트에 필요한 NuGet 패키지를 복원합니다.",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' 실행",
"postActions/open-file/description": "편집기에서 Program.cs를 엽니다"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Aplikacja konsoli",
"description": "Projekt służący do tworzenia aplikacji wiersza polecenia, która może działać na platformie .NET w systemach Windows, Linux i macOS",
"symbols/TargetFrameworkOverride/description": "Zastępuje platformę docelową",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Pomiń przywracanie",
"symbols/UseProgramMain/description": "Określa, czy wygenerować jawną klasę Program i metodę Main zamiast instrukcji najwyższego poziomu.",
"symbols/UseProgramMain/displayName": "Nie używaj instrukcji najwyższego poziomu",
"symbols/DoNotUseImplicitUsings/description": "Czy generować plik projektu z określonymi niejawnymi zastosowaniami.",
"symbols/DoNotUseImplicitUsings/displayName": "Nie używaj niejawnych zastosowań",
"postActions/restore/description": "Przywróć pakiety NuGet wymagane przez ten projekt.",
"postActions/restore/manualInstructions/default/text": "Uruchom polecenie \"dotnet restore\"",
"postActions/open-file/description": "Otwiera plik Program.cs w edytorze"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Aplicativo do Console",
"description": "Um projeto para criar um aplicativo de linha de comando que pode ser executado no .NET no Windows, Linux e macOS",
"symbols/TargetFrameworkOverride/description": "Substitui a estrutura de destino",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Ignorar restauração",
"symbols/UseProgramMain/description": "Se deve gerar uma classe de Programa explícita e um método principal em vez de instruções de nível superior.",
"symbols/UseProgramMain/displayName": "Não usar instruções de nível superior",
"symbols/DoNotUseImplicitUsings/description": "Se deve gerar o arquivo de projeto com usos implícitos especificados.",
"symbols/DoNotUseImplicitUsings/displayName": "Não usar usos implícitos",
"postActions/restore/description": "Restaure os pacotes NuGet exigidos por este projeto.",
"postActions/restore/manualInstructions/default/text": "Executar 'dotnet restore'",
"postActions/open-file/description": "Abre Program.cs no editor"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Консольное приложение",
"description": "Проект для создания приложения командной строки, которое может выполняться в среде .NET в Windows, Linux и macOS",
"symbols/TargetFrameworkOverride/description": "Переопределяет целевую платформу",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Пропустить восстановление",
"symbols/UseProgramMain/description": "Следует ли создавать явный класс Program и метод Main вместо операторов верхнего уровня.",
"symbols/UseProgramMain/displayName": "Не использовать операторы верхнего уровня",
"symbols/DoNotUseImplicitUsings/description": "Следует ли создавать файл проекта с указанным неявным использованием.",
"symbols/DoNotUseImplicitUsings/displayName": "Не используйте неявное использование",
"postActions/restore/description": "Восстановление пакетов NuGet, необходимых для этого проекта.",
"postActions/restore/manualInstructions/default/text": "Выполнить команду \"dotnet restore\"",
"postActions/open-file/description": "Открывает файл Program.cs в редакторе"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "Konsol Uygulaması",
"description": "Windows, Linux ve macOS'de .NET üzerinde çalışabilen bir komut satırı uygulaması oluşturma projesi",
"symbols/TargetFrameworkOverride/description": "Hedef çerçeveyi geçersiz kılar",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "Geri yüklemeyi atla",
"symbols/UseProgramMain/description": "Üst düzey deyimler yerine açık bir Program sınıfı ve Ana yöntem oluşturup oluşturulmayacağını belirtir.",
"symbols/UseProgramMain/displayName": "Üst düzey deyimler kullanmayın",
"symbols/DoNotUseImplicitUsings/description": "Belirtilen örtük kullanımlarla proje dosyasının oluşturulup oluşturulmayacağı.",
"symbols/DoNotUseImplicitUsings/displayName": "Örtük kullanımlar kullanmayın",
"postActions/restore/description": "Bu projenin gerektirdiği NuGet paketlerini geri yükleyin.",
"postActions/restore/manualInstructions/default/text": "'dotnet restore' çalıştır",
"postActions/open-file/description": "Düzenleyicide Program.cs’yi açar"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "控制台应用",
"description": "用于创建可在 Windows、Linux 和 macOS 上 .NET 上运行的命令行应用程序的项目",
"symbols/TargetFrameworkOverride/description": "替代目标框架",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "跳过还原",
"symbols/UseProgramMain/description": "是否生成显式程序类和主方法,而不是顶级语句。",
"symbols/UseProgramMain/displayName": "不使用顶级语句",
"symbols/DoNotUseImplicitUsings/description": "是否生成指定隐式使用的项目文件。",
"symbols/DoNotUseImplicitUsings/displayName": "不要使用隐式使用",
"postActions/restore/description": "还原此项目所需的 NuGet 包。",
"postActions/restore/manualInstructions/default/text": "运行“dotnet restore”",
"postActions/open-file/description": "在编辑器中打开 Program.cs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"author": "Microsoft",
"author": "Balkoth",
"name": "主控台應用程式",
"description": "專案,用於建立可在 Windows、Linux 及 macOS 於 .NET 執行的命令列應用程式",
"symbols/TargetFrameworkOverride/description": "覆寫目標 Framework",
Expand All @@ -14,6 +14,8 @@
"symbols/skipRestore/displayName": "略過還原",
"symbols/UseProgramMain/description": "是否要產生明確的 Program 類別和 Main 方法,而非最上層語句。",
"symbols/UseProgramMain/displayName": "不要使用最上層語句",
"symbols/DoNotUseImplicitUsings/description": "是否生成指定隱式使用的項目文件。",
"symbols/DoNotUseImplicitUsings/displayName": "不要使用隱式使用",
"postActions/restore/description": "還原此專案所需的 NuGet 套件。",
"postActions/restore/manualInstructions/default/text": "執行 'dotnet restore'",
"postActions/open-file/description": "在編輯器中開啟 Program.cs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
{
"$schema": "http://json.schemastore.org/template",
"author": "Microsoft",
"classifications": [
"Common",
"Console"
],
"author": "Balkoth",
"classifications": [ "Linux", "macOS", "Windows", "Console" ],
"name": "Console App",
"generatorVersions": "[1.0.0.0-*)",
"description": "A project for creating a command-line application that can run on .NET on Windows, Linux and macOS",
"groupIdentity": "Microsoft.Common.Console",
"precedence": "8000",
"identity": "Microsoft.Common.Console.CSharp.6.0",
"shortName": "console",
"identity": "Balkoth.Classic.Console",
"shortName": "cca",
"tags": {
"language": "C#",
"type": "project"
Expand Down Expand Up @@ -64,10 +59,17 @@
"UseProgramMain": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "false",
"defaultValue": "true",
"description": "Whether to generate an explicit Program class and Main method instead of top-level statements.",
"displayName": "Do not use top-level statements"
},
"DoNotUseImplicitUsings": {
"type": "parameter",
"datatype": "bool",
"defaultValue": "true",
"description": "Whether to generate the project file with implicit usings specified.",
"displayName": "Do not use implicit usings"
},
"csharp10orLater": {
"type": "generated",
"generator": "regexMatch",
Expand Down Expand Up @@ -97,7 +99,7 @@
},
"csharpFeature_ImplicitUsings": {
"type": "computed",
"value": "csharp10orLater == \"true\""
"value": "(csharp10orLater == \"true\" && DoNotUseImplicitUsings != \"true\")"
},
"csharpFeature_Nullable": {
"type": "computed",
Expand Down

0 comments on commit 539c6a0

Please sign in to comment.