Skip to content

Commit 117dda3

Browse files
authored
Remove hosted option from blazor wasm template (#48922)
* removed hosted option from blazor wasm templates
1 parent fe89ccf commit 117dda3

File tree

125 files changed

+135
-4416
lines changed

Some content is hidden

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

125 files changed

+135
-4416
lines changed

src/ProjectTemplates/Shared/ArgConstants.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ internal static class ArgConstants
77
{
88
public const string UseProgramMain = "--use-program-main";
99
public const string UseMinimalApis = "--use-minimal-apis";
10-
public const string Hosted = "--hosted";
1110
public const string Pwa = "--pwa";
1211
public const string CallsGraph = "--calls-graph";
1312
public const string CalledApiUrl = "--called-api-url";

src/ProjectTemplates/Web.ProjectTemplates/ComponentsWebAssembly-CSharp.Server.csproj.in

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

src/ProjectTemplates/Web.ProjectTemplates/ComponentsWebAssembly-CSharp.Shared.csproj.in

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

src/ProjectTemplates/Web.ProjectTemplates/ComponentsWebAssembly-CSharp.Client.csproj.in renamed to src/ProjectTemplates/Web.ProjectTemplates/ComponentsWebAssembly-CSharp.csproj.in

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,15 @@
77
<!--#if PWA -->
88
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
99
<!--#endif -->
10-
<!--#if Hosted -->
11-
<AssemblyName Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">`$(AssemblyName.Replace(' ', '_'))</AssemblyName>
12-
<!--#endif -->
1310
</PropertyGroup>
1411

1512
<ItemGroup>
1613
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="${MicrosoftAspNetCoreComponentsWebAssemblyVersion}" />
1714
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="${MicrosoftAspNetCoreComponentsWebAssemblyDevServerVersion}" PrivateAssets="all" />
1815
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="${MicrosoftAspNetCoreComponentsWebAssemblyAuthenticationVersion}" Condition="'$(IndividualLocalAuth)' == 'true'" />
1916
<PackageReference Include="Microsoft.Authentication.WebAssembly.Msal" Version="${MicrosoftAuthenticationWebAssemblyMsalVersion}" Condition="'$(OrganizationalAuth)' == 'true' OR '$(IndividualB2CAuth)' == 'true'" />
20-
<PackageReference Include="Microsoft.Extensions.Http" Version="${MicrosoftExtensionsHttpVersion}" Condition="'$(NoAuth)' != 'true' AND '$(Hosted)' == 'true'" />
2117
</ItemGroup>
2218

23-
<!--#if Hosted -->
24-
<ItemGroup>
25-
<ProjectReference Include="..\Shared\ComponentsWebAssembly-CSharp.Shared.csproj" />
26-
</ItemGroup>
27-
28-
<!--#endif -->
2919
<!--#if PWA -->
3020
<ItemGroup>
3121
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />

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

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

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

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

src/ProjectTemplates/Web.ProjectTemplates/EmptyComponentsWebAssembly-CSharp.Client.csproj.in renamed to src/ProjectTemplates/Web.ProjectTemplates/EmptyComponentsWebAssembly-CSharp.csproj.in

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,13 @@
77
<!--#if PWA -->
88
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
99
<!--#endif -->
10-
<!--#if Hosted -->
11-
<AssemblyName Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">`$(AssemblyName.Replace(' ', '_'))</AssemblyName>
12-
<!--#endif -->
1310
</PropertyGroup>
1411

1512
<ItemGroup>
1613
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="${MicrosoftAspNetCoreComponentsWebAssemblyVersion}" />
1714
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="${MicrosoftAspNetCoreComponentsWebAssemblyDevServerVersion}" PrivateAssets="all" />
18-
<PackageReference Include="Microsoft.Extensions.Http" Version="${MicrosoftExtensionsHttpVersion}" Condition="'$(Hosted)' == 'true'" />
1915
</ItemGroup>
2016

21-
<!--#if Hosted -->
22-
<ItemGroup>
23-
<ProjectReference Include="..\Shared\EmptyComponentsWebAssembly-CSharp.Shared.csproj" />
24-
</ItemGroup>
25-
26-
<!--#endif -->
2717
<!--#if PWA -->
2818
<ItemGroup>
2919
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,8 @@
6464
<GeneratedContent Include="Worker-CSharp.csproj.in" OutputPath="content/Worker-CSharp/Company.Application1.csproj" />
6565
<GeneratedContent Include="Worker-FSharp.fsproj.in" OutputPath="content/Worker-FSharp/Company.Application1.fsproj" />
6666
<GeneratedContent Include="Components-CSharp.csproj.in" OutputPath="content/Components-CSharp/Components-CSharp.csproj" />
67-
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Client.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Client/ComponentsWebAssembly-CSharp.Client.csproj" />
68-
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Shared.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Shared/ComponentsWebAssembly-CSharp.Shared.csproj" />
69-
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Server.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Server/ComponentsWebAssembly-CSharp.Server.csproj" />
70-
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.Client.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/Client/EmptyComponentsWebAssembly-CSharp.Client.csproj" />
71-
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.Shared.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/Shared/EmptyComponentsWebAssembly-CSharp.Shared.csproj" />
72-
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.Server.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/Server/EmptyComponentsWebAssembly-CSharp.Server.csproj" />
67+
<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" />
7369
</ItemGroup>
7470

7571
</Project>

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
"longName": "no-restore",
66
"shortName": ""
77
},
8-
"Hosted": {
9-
"longName": "hosted"
10-
},
118
"PWA": {
129
"longName": "pwa"
1310
},

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
"icon": "icon.png",
55
"disableHttpsSymbol": "NoHttps",
66
"symbolInfo": [
7-
{
8-
"id": "Hosted",
9-
"isVisible": true,
10-
"persistenceScope": "templateGroup"
11-
},
127
{
138
"id": "PWA",
149
"isVisible": true,

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
{
1+
{
22
"author": "Microsoft",
33
"name": "Aplikace Blazor WebAssembly",
44
"description": "Šablona projektu pro vytvoření aplikace Blazor, která běží ve WebAssembly a dá se volitelně hostovat v aplikaci ASP.NET. Tato šablona se dá použí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",
77
"symbols/skipRestore/description": "Pokud se tato možnost zadá, přeskočí automatické obnovení projektu při vytvoření.",
8-
"symbols/Hosted/displayName": "_Hostováno pomocí ASP.NET Core",
9-
"symbols/Hosted/description": "Pokud je tato možnost zadaná, zahrnuje hostitele ASP.NET Core pro aplikaci Blazor WebAssembly.",
108
"symbols/auth/choices/None/description": "Bez ověřování",
119
"symbols/auth/choices/Individual/description": "Ověřování Individual",
1210
"symbols/auth/choices/IndividualB2C/description": "Ověřování Individual pomocí Azure AD B2C",
@@ -40,7 +38,5 @@
4038
"symbols/UseProgramMain/description": "Určuje, jestli se má místo příkazů nejvyšší úrovně generovat explicitní třída Program a metoda Main.",
4139
"postActions/restore/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
4240
"postActions/restore/manualInstructions/default/text": "Spustit dotnet restore",
43-
"postActions/restoreClient/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
44-
"postActions/restoreClient/manualInstructions/default/text": "Spustit „dotnet restore“",
4541
"postActions/open-file/description": "Otevře soubor Readme.txt v editoru."
46-
}
42+
}

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
{
1+
{
22
"author": "Microsoft",
33
"name": "Blazor-WebAssembly App",
44
"description": "Eine Projektvorlage zum Erstellen einer Blazor-App, die auf WebAssembly ausgeführt und optional durch eine ASP.NET Core-App gehostet 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",
77
"symbols/skipRestore/description": "Wenn angegeben, wird die automatische Wiederherstellung des Projekts beim Erstellen übersprungen.",
8-
"symbols/Hosted/displayName": "ASP.NET Core _gehostet",
9-
"symbols/Hosted/description": "Enthält, falls angegeben, einen ASP.NET Core Host für die Blazor WebAssembly App.",
108
"symbols/auth/choices/None/description": "Keine Authentifizierung",
119
"symbols/auth/choices/Individual/description": "Individuelle Authentifizierung",
1210
"symbols/auth/choices/IndividualB2C/description": "Individuelle Authentifizierung mit Azure AD B2C",
@@ -40,7 +38,5 @@
4038
"symbols/UseProgramMain/description": "Gibt an, ob anstelle von Anweisungen der obersten Ebene eine explizite Programmklasse und eine Main-Methode generiert werden soll.",
4139
"postActions/restore/description": "„NuGet-Pakete“ wiederherstellen, die für dieses Projekt erforderlich sind.",
4240
"postActions/restore/manualInstructions/default/text": "„dotnet restore“ ausführen",
43-
"postActions/restoreClient/description": "„NuGet-Pakete“ wiederherstellen, die für dieses Projekt erforderlich sind.",
44-
"postActions/restoreClient/manualInstructions/default/text": "Führen Sie 'dotnet restore' aus",
4541
"postActions/open-file/description": "Öffnet Readme.txt im Editor"
46-
}
42+
}

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
"symbols/Framework/choices/net8.0/description": "Target net8.0",
77
"_symbols/Framework/choices/net8.0/description.comment": "{Locked='net8.0'}",
88
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.",
9-
"symbols/Hosted/displayName": "ASP.NET Core _Hosted",
10-
"symbols/Hosted/description": "If specified, includes an ASP.NET Core host for the Blazor WebAssembly app.",
119
"symbols/auth/choices/None/description": "No authentication",
1210
"symbols/auth/choices/Individual/description": "Individual authentication",
1311
"symbols/auth/choices/IndividualB2C/description": "Individual authentication with Azure AD B2C",
@@ -42,7 +40,5 @@
4240
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.",
4341
"postActions/restore/description": "Restore NuGet packages required by this project.",
4442
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'",
45-
"postActions/restoreClient/description": "Restore NuGet packages required by this project.",
46-
"postActions/restoreClient/manualInstructions/default/text": "Run 'dotnet restore'",
4743
"postActions/open-file/description": "Opens Readme.txt in the editor"
4844
}

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
{
1+
{
22
"author": "Microsoft",
33
"name": "Aplicación Blazor para WebAssembly",
44
"description": "Plantilla de proyecto para crear una aplicación Blazor que se ejecuta en WebAssembly y que se hospeda de forma opcional en una aplicación de ASP.NET Core. Esta plantilla se puede usar para las aplicaciones web con interfaces de usuario dinámicas enriquecidas (IU).",
55
"symbols/Framework/description": "Marco de destino del proyecto.",
66
"symbols/Framework/choices/net8.0/description": "net8.0 de destino",
77
"symbols/skipRestore/description": "Si se especifica, se omite la restauración automática del proyecto durante la creación.",
8-
"symbols/Hosted/displayName": "ASP.NET Core _hospedado",
9-
"symbols/Hosted/description": "Si se especifica, incluye un host de ASP.NET Core para la aplicación Blazor WebAssembly.",
108
"symbols/auth/choices/None/description": "Sin autenticación",
119
"symbols/auth/choices/Individual/description": "Autenticación individual",
1210
"symbols/auth/choices/IndividualB2C/description": "Autenticación individual con Azure AD B2C",
@@ -40,7 +38,5 @@
4038
"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.",
4139
"postActions/restore/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
4240
"postActions/restore/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
43-
"postActions/restoreClient/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
44-
"postActions/restoreClient/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
4541
"postActions/open-file/description": "Abre Readme.txt en el editor"
46-
}
42+
}

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
{
1+
{
22
"author": "Microsoft",
33
"name": "Application WebAssembly Blazor",
44
"description": "Modèle de projet permettant de créer une application Blazor qui s'exécute sur WebAssembly et qui est éventuellement hébergée par une application ASP.NET Core. 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",
77
"symbols/skipRestore/description": "S’il est spécifié, ignore la restauration automatique du projet lors de la création.",
8-
"symbols/Hosted/displayName": "ASP.NET core _Hosted",
9-
"symbols/Hosted/description": "S’il est spécifié, inclut un hôte ASP.NET Core pour l’application Blazor WebAssembly.",
108
"symbols/auth/choices/None/description": "Aucune authentification",
119
"symbols/auth/choices/Individual/description": "Authentification individuelle",
1210
"symbols/auth/choices/IndividualB2C/description": "Authentification individuelle avec Azure AD B2C",
@@ -40,7 +38,5 @@
4038
"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.",
4139
"postActions/restore/description": "Restaurez les packages NuGet requis par ce projet.",
4240
"postActions/restore/manualInstructions/default/text": "Exécuter « dotnet restore »",
43-
"postActions/restoreClient/description": "Restaurez les packages NuGet requis par ce projet.",
44-
"postActions/restoreClient/manualInstructions/default/text": "Exécuter « dotnet restore »",
4541
"postActions/open-file/description": "Ouvre Readme.txt dans l’éditeur"
46-
}
42+
}

0 commit comments

Comments
 (0)