Skip to content

Commit 067d3f5

Browse files
authored
Update Blazor WebAssembly template (#50554)
# Update Blazor WebAssembly template Renamed from "Blazor WebAssembly App" to "Blazor WebAssembly Standalone App" and added "Include sample pages" option to ide (checked by default) as well as "--empty" option for creating empty template "dotnet new blazorwasm --empty" ![blazorwasmstandalone](https://github.com/dotnet/aspnetcore/assets/114938397/50a3a1b5-6243-4463-b364-33e85218ebdf) Empty template without auth files: ![emptyprojectstructure](https://github.com/dotnet/aspnetcore/assets/114938397/7efd080e-63ca-48de-88e9-c8524f1fe4df) Looks like this: ![emptylook](https://github.com/dotnet/aspnetcore/assets/114938397/b7531e84-526f-45a2-97bf-7acff8905407) Empty template with auth files: ![emptyplusauthstruncture](https://github.com/dotnet/aspnetcore/assets/114938397/9b88eda1-d40f-4d38-8c90-293f36103382) Looks like this: ![emptyplusauthlook](https://github.com/dotnet/aspnetcore/assets/114938397/cf1054b6-6560-43d5-a056-dc6c01e756a6) Fixes #50195 Fixes #50292
1 parent baf4f31 commit 067d3f5

File tree

81 files changed

+413
-7084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+413
-7084
lines changed

src/ProjectTemplates/Shared/ArgConstants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ internal static class ArgConstants
2626
public const string NoHttps = "--no-https";
2727
public const string PublishNativeAot = "--aot";
2828
public const string UseServer = "--use-server";
29+
public const string Empty = "--empty";
2930
}

src/ProjectTemplates/Web.ProjectTemplates/EmptyComponentsWebAssembly-CSharp.csproj.in

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/ProjectTemplates/Web.ProjectTemplates/Microsoft.DotNet.Web.ProjectTemplates.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
<GeneratedContent Include="BlazorWeb-CSharp.csproj.in" OutputPath="content/BlazorWeb-CSharp/BlazorWeb-CSharp/BlazorWeb-CSharp.csproj" />
6666
<GeneratedContent Include="BlazorWeb-CSharp.Client.csproj.in" OutputPath="content/BlazorWeb-CSharp/BlazorWeb-CSharp.Client/BlazorWeb-CSharp.Client.csproj" />
6767
<GeneratedContent Include="ComponentsWebAssembly-CSharp.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/ComponentsWebAssembly-CSharp.csproj" />
68-
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/EmptyComponentsWebAssembly-CSharp.csproj" />
6968
</ItemGroup>
7069

7170
</Project>

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/dotnetcli.host.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
"Framework": {
1212
"longName": "framework"
1313
},
14+
"Empty": {
15+
"longName": "empty"
16+
},
17+
"IncludeSampleContent": {
18+
"isHidden": true
19+
},
1420
"UseLocalDB": {
1521
"longName": "use-local-db"
1622
},
@@ -82,16 +88,16 @@
8288
"shortName": ""
8389
},
8490
"CalledApiUrl": {
85-
"longName": "called-api-url",
86-
"shortName": ""
91+
"longName": "called-api-url",
92+
"shortName": ""
8793
},
8894
"CalledApiScopes": {
89-
"longName": "called-api-scopes",
90-
"shortName": ""
95+
"longName": "called-api-scopes",
96+
"shortName": ""
9197
},
9298
"CallsMicrosoftGraph": {
93-
"longName": "calls-graph",
94-
"shortName": ""
99+
"longName": "calls-graph",
100+
"shortName": ""
95101
},
96102
"UseProgramMain": {
97103
"longName": "use-program-main",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/ide.host.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"isVisible": true,
1515
"persistenceScope": "shared",
1616
"persistenceScopeName": "Microsoft"
17+
},
18+
{
19+
"id": "IncludeSampleContent",
20+
"isVisible": true,
21+
"persistenceScope": "shared",
22+
"persistenceScopeName": "Microsoft"
1723
}
1824
]
1925
}

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.cs.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Šablona projektu pro vytvoření aplikace Blazor, která běží ve WebAssembly. Tato šablona se dá využít pro webové aplikace s propracovanými dynamickými uživatelskými rozhraními (UI).",
55
"symbols/Framework/description": "Cílová architektura pro projekt",
66
"symbols/Framework/choices/net8.0/description": "Cílový net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Pokud se tato možnost zadá, přeskočí automatické obnovení projektu při vytvoření.",
811
"symbols/auth/choices/None/description": "Bez ověřování",
912
"symbols/auth/choices/Individual/description": "Ověřování Individual",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.de.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Eine Projektvorlage für das Erstellen einer Blazor-App, die in WebAssembly ausgeführt wird. Diese Vorlage kann für Web-Apps mit umfangreichen dynamischen Benutzeroberflächen verwendet werden.",
55
"symbols/Framework/description": "Das Zielframework für das Projekt.",
66
"symbols/Framework/choices/net8.0/description": "Ziel net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Wenn angegeben, wird die automatische Wiederherstellung des Projekts beim Erstellen übersprungen.",
811
"symbols/auth/choices/None/description": "Keine Authentifizierung",
912
"symbols/auth/choices/Individual/description": "Individuelle Authentifizierung",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"author": "Microsoft",
3-
"name": "Blazor WebAssembly App",
3+
"name": "Blazor WebAssembly Standalone App",
44
"description": "A project template for creating a Blazor app that runs on WebAssembly. This template can be used for web apps with rich dynamic user interfaces (UIs).",
55
"symbols/Framework/description": "The target framework for the project.",
66
"symbols/Framework/choices/net8.0/description": "Target net8.0",
77
"_symbols/Framework/choices/net8.0/description.comment": "{Locked='net8.0'}",
8+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
9+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
10+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
811
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.",
912
"symbols/auth/choices/None/description": "No authentication",
1013
"symbols/auth/choices/Individual/description": "Individual authentication",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.es.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Plantilla de proyecto para crear una aplicación Blazor que se ejecuta en WebAssembly. Esta plantilla se puede usar para las aplicaciones web con interfaces de usuario dinámicas enriquecidas.",
55
"symbols/Framework/description": "Marco de destino del proyecto.",
66
"symbols/Framework/choices/net8.0/description": "net8.0 de destino",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Si se especifica, se omite la restauración automática del proyecto durante la creación.",
811
"symbols/auth/choices/None/description": "Sin autenticación",
912
"symbols/auth/choices/Individual/description": "Autenticación individual",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.fr.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Modèle de projet permettant de créer une application Blazor qui s'exécute sur WebAssembly. Vous pouvez utiliser ce modèle pour les applications web ayant des IU (interfaces utilisateur) dynamiques riches.",
55
"symbols/Framework/description": "Framework cible du projet.",
66
"symbols/Framework/choices/net8.0/description": "Cible net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "S’il est spécifié, ignore la restauration automatique du projet lors de la création.",
811
"symbols/auth/choices/None/description": "Aucune authentification",
912
"symbols/auth/choices/Individual/description": "Authentification individuelle",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.it.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Modello di progetto per la creazione di un'app Blazor eseguita in WebAssembly. Questo modello può essere usato per app Web con interfacce utente dinamiche.",
55
"symbols/Framework/description": "Il framework di destinazione per il progetto.",
66
"symbols/Framework/choices/net8.0/description": "Destinazione net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Se specificato, ignora il ripristino automatico del progetto durante la creazione.",
811
"symbols/auth/choices/None/description": "Nessuna autenticazione",
912
"symbols/auth/choices/Individual/description": "Autenticazione singola",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.ja.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "WebAssembly で実行される Blazor アプリを作成するためのプロジェクト テンプレート。このテンプレートは、高度でダイナミックなユーザー インターフェイス (UI) を備えた Web アプリに使用できます。",
55
"symbols/Framework/description": "プロジェクトのターゲット フレームワークです。",
66
"symbols/Framework/choices/net8.0/description": "ターゲット net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "指定した場合、作成時にプロジェクトの自動復元がスキップされます。",
811
"symbols/auth/choices/None/description": "認証なし",
912
"symbols/auth/choices/Individual/description": "個別の認証",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.ko.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "WebAssembly에서 실행되는 Blazor 앱을 만드는 데 사용되는 프로젝트 템플릿입니다. 이 템플릿을 사용하여 다양한 동적 UI(사용자 인터페이스)가 포함된 웹앱을 만들 수 있습니다.",
55
"symbols/Framework/description": "프로젝트에 대한 대상 프레임워크입니다.",
66
"symbols/Framework/choices/net8.0/description": "대상 net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "지정된 경우, 프로젝트 생성 시 자동 복원을 건너뜁니다.",
811
"symbols/auth/choices/None/description": "인증 없음",
912
"symbols/auth/choices/Individual/description": "개별 인증",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.pl.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Szablon projektu służący do tworzenia aplikacji Blazor działającej na zestawie WebAssembly. Ten szablon może być używany dla aplikacji internetowych z rozbudowanymi, dynamicznymi interfejsami użytkowników.",
55
"symbols/Framework/description": "Platforma docelowa dla tego projektu.",
66
"symbols/Framework/choices/net8.0/description": "Docelowa platforma net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Jeśli ta opcja jest określona, pomija automatyczne przywracanie projektu podczas tworzenia.",
811
"symbols/auth/choices/None/description": "Bez uwierzytelniania",
912
"symbols/auth/choices/Individual/description": "Uwierzytelnianie indywidualne",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.pt-BR.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Um modelo de projeto para criar um aplicativo Blazor que é executado no WebAssembly. Esse modelo pode ser usado para aplicativos Web com UIs (interfaces do usuário) completas e dinâmicas.",
55
"symbols/Framework/description": "A estrutura de destino do projeto.",
66
"symbols/Framework/choices/net8.0/description": "net8.0 de destino",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Se especificado, ignora a restauração automática do projeto sendo criado.",
811
"symbols/auth/choices/None/description": "Sem autenticação",
912
"symbols/auth/choices/Individual/description": "Autenticação individual",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.ru.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "Шаблон проекта для создания приложения Blazor, которое запускается в WebAssembly. Этот шаблон можно использовать для веб-приложений с полнофункциональными динамическими пользовательскими интерфейсами.",
55
"symbols/Framework/description": "Целевая платформа для проекта.",
66
"symbols/Framework/choices/net8.0/description": "Целевая net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Если установлено, автоматическое восстановление проекта при создании пропускается.",
811
"symbols/auth/choices/None/description": "Без проверки подлинности",
912
"symbols/auth/choices/Individual/description": "Индивидуальная проверка подлинности",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.tr.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "WebAssembly üzerinde çalışan bir Blazor uygulaması oluşturmaya yönelik proje şablonu. Bu şablon, zengin dinamik kullanıcı arabirimlerine (UI) sahip web uygulamaları için kullanılabilir.",
55
"symbols/Framework/description": "Projenin hedef çerçevesi.",
66
"symbols/Framework/choices/net8.0/description": "Hedef net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "Belirtilirse, oluşturma sırasında projenin otomatik geri yüklenmesini atlar.",
811
"symbols/auth/choices/None/description": "Kimlik doğrulaması yok",
912
"symbols/auth/choices/Individual/description": "Bireysel kimlik doğrulaması",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.zh-Hans.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "用于创建在 WebAssembly 上运行的 Blazor 应用的项目模板。此模板可用于具有丰富动态用户界面(UI)的 Web 应用。",
55
"symbols/Framework/description": "项目的目标框架。",
66
"symbols/Framework/choices/net8.0/description": "目标 net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "如果指定,则在创建时跳过项目的自动还原。",
811
"symbols/auth/choices/None/description": "无身份验证",
912
"symbols/auth/choices/Individual/description": "个人身份验证",

src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/.template.config/localize/templatestrings.zh-Hant.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"description": "用來建立在 WebAssembly 上執行之 Blazor 應用程式的專案範本。此範本可用於具有豐富動態使用者介面 (UI) 的 Web 應用程式。",
55
"symbols/Framework/description": "專案的目標 Framework。",
66
"symbols/Framework/choices/net8.0/description": "目標 net8.0",
7+
"symbols/IncludeSampleContent/displayName": "_Include sample pages",
8+
"symbols/IncludeSampleContent/description": "Configures whether to add sample pages and styling to demonstrate basic usage patterns.",
9+
"symbols/Empty/description": "Configures whether to omit sample pages and styling that demonstrate basic usage patterns.",
710
"symbols/skipRestore/description": "若指定,會在建立時跳過專案的自動還原。",
811
"symbols/auth/choices/None/description": "沒有驗證",
912
"symbols/auth/choices/Individual/description": "個別驗證",

0 commit comments

Comments
 (0)