Skip to content

Remove hosted option from blazor wasm template #48922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/ProjectTemplates/Shared/ArgConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ internal static class ArgConstants
{
public const string UseProgramMain = "--use-program-main";
public const string UseMinimalApis = "--use-minimal-apis";
public const string Hosted = "--hosted";
public const string Pwa = "--pwa";
public const string CallsGraph = "--calls-graph";
public const string CalledApiUrl = "--called-api-url";
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,15 @@
<!--#if PWA -->
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
<!--#endif -->
<!--#if Hosted -->
<AssemblyName Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">`$(AssemblyName.Replace(' ', '_'))</AssemblyName>
<!--#endif -->
</PropertyGroup>

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

<!--#if Hosted -->
<ItemGroup>
<ProjectReference Include="..\Shared\ComponentsWebAssembly-CSharp.Shared.csproj" />
</ItemGroup>

<!--#endif -->
<!--#if PWA -->
<ItemGroup>
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,13 @@
<!--#if PWA -->
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
<!--#endif -->
<!--#if Hosted -->
<AssemblyName Condition="'$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'">`$(AssemblyName.Replace(' ', '_'))</AssemblyName>
<!--#endif -->
</PropertyGroup>

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

<!--#if Hosted -->
<ItemGroup>
<ProjectReference Include="..\Shared\EmptyComponentsWebAssembly-CSharp.Shared.csproj" />
</ItemGroup>

<!--#endif -->
<!--#if PWA -->
<ItemGroup>
<ServiceWorker Include="wwwroot\service-worker.js" PublishedContent="wwwroot\service-worker.published.js" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,8 @@
<GeneratedContent Include="Worker-CSharp.csproj.in" OutputPath="content/Worker-CSharp/Company.Application1.csproj" />
<GeneratedContent Include="Worker-FSharp.fsproj.in" OutputPath="content/Worker-FSharp/Company.Application1.fsproj" />
<GeneratedContent Include="Components-CSharp.csproj.in" OutputPath="content/Components-CSharp/Components-CSharp.csproj" />
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Client.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Client/ComponentsWebAssembly-CSharp.Client.csproj" />
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Shared.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Shared/ComponentsWebAssembly-CSharp.Shared.csproj" />
<GeneratedContent Include="ComponentsWebAssembly-CSharp.Server.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/Server/ComponentsWebAssembly-CSharp.Server.csproj" />
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.Client.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/Client/EmptyComponentsWebAssembly-CSharp.Client.csproj" />
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.Shared.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/Shared/EmptyComponentsWebAssembly-CSharp.Shared.csproj" />
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.Server.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/Server/EmptyComponentsWebAssembly-CSharp.Server.csproj" />
<GeneratedContent Include="ComponentsWebAssembly-CSharp.csproj.in" OutputPath="content/ComponentsWebAssembly-CSharp/ComponentsWebAssembly-CSharp.csproj" />
<GeneratedContent Include="EmptyComponentsWebAssembly-CSharp.csproj.in" OutputPath="content/EmptyComponentsWebAssembly-CSharp/EmptyComponentsWebAssembly-CSharp.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"longName": "no-restore",
"shortName": ""
},
"Hosted": {
"longName": "hosted"
},
"PWA": {
"longName": "pwa"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"icon": "icon.png",
"disableHttpsSymbol": "NoHttps",
"symbolInfo": [
{
"id": "Hosted",
"isVisible": true,
"persistenceScope": "templateGroup"
},
{
"id": "PWA",
"isVisible": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
{
"author": "Microsoft",
"name": "Aplikace Blazor WebAssembly",
"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).",
"symbols/Framework/description": "Cílová architektura pro projekt",
"symbols/Framework/choices/net8.0/description": "Cílový net8.0",
"symbols/skipRestore/description": "Pokud se tato možnost zadá, přeskočí automatické obnovení projektu při vytvoření.",
"symbols/Hosted/displayName": "_Hostováno pomocí ASP.NET Core",
"symbols/Hosted/description": "Pokud je tato možnost zadaná, zahrnuje hostitele ASP.NET Core pro aplikaci Blazor WebAssembly.",
"symbols/auth/choices/None/description": "Bez ověřování",
"symbols/auth/choices/Individual/description": "Ověřování Individual",
"symbols/auth/choices/IndividualB2C/description": "Ověřování Individual pomocí Azure AD B2C",
Expand Down Expand Up @@ -40,7 +38,5 @@
"symbols/UseProgramMain/description": "Určuje, jestli se má místo příkazů nejvyšší úrovně generovat explicitní třída Program a metoda Main.",
"postActions/restore/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
"postActions/restore/manualInstructions/default/text": "Spustit dotnet restore",
"postActions/restoreClient/description": "Obnoví balíčky NuGet vyžadované tímto projektem.",
"postActions/restoreClient/manualInstructions/default/text": "Spustit „dotnet restore“",
"postActions/open-file/description": "Otevře soubor Readme.txt v editoru."
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
{
"author": "Microsoft",
"name": "Blazor-WebAssembly App",
"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.",
"symbols/Framework/description": "Das Zielframework für das Projekt.",
"symbols/Framework/choices/net8.0/description": "Ziel net8.0",
"symbols/skipRestore/description": "Wenn angegeben, wird die automatische Wiederherstellung des Projekts beim Erstellen übersprungen.",
"symbols/Hosted/displayName": "ASP.NET Core _gehostet",
"symbols/Hosted/description": "Enthält, falls angegeben, einen ASP.NET Core Host für die Blazor WebAssembly App.",
"symbols/auth/choices/None/description": "Keine Authentifizierung",
"symbols/auth/choices/Individual/description": "Individuelle Authentifizierung",
"symbols/auth/choices/IndividualB2C/description": "Individuelle Authentifizierung mit Azure AD B2C",
Expand Down Expand Up @@ -40,7 +38,5 @@
"symbols/UseProgramMain/description": "Gibt an, ob anstelle von Anweisungen der obersten Ebene eine explizite Programmklasse und eine Main-Methode generiert werden soll.",
"postActions/restore/description": "„NuGet-Pakete“ wiederherstellen, die für dieses Projekt erforderlich sind.",
"postActions/restore/manualInstructions/default/text": "„dotnet restore“ ausführen",
"postActions/restoreClient/description": "„NuGet-Pakete“ wiederherstellen, die für dieses Projekt erforderlich sind.",
"postActions/restoreClient/manualInstructions/default/text": "Führen Sie 'dotnet restore' aus",
"postActions/open-file/description": "Öffnet Readme.txt im Editor"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"symbols/Framework/choices/net8.0/description": "Target net8.0",
"_symbols/Framework/choices/net8.0/description.comment": "{Locked='net8.0'}",
"symbols/skipRestore/description": "If specified, skips the automatic restore of the project on create.",
"symbols/Hosted/displayName": "ASP.NET Core _Hosted",
"symbols/Hosted/description": "If specified, includes an ASP.NET Core host for the Blazor WebAssembly app.",
"symbols/auth/choices/None/description": "No authentication",
"symbols/auth/choices/Individual/description": "Individual authentication",
"symbols/auth/choices/IndividualB2C/description": "Individual authentication with Azure AD B2C",
Expand Down Expand Up @@ -42,7 +40,5 @@
"symbols/UseProgramMain/description": "Whether to generate an explicit Program class and Main method instead of top-level statements.",
"postActions/restore/description": "Restore NuGet packages required by this project.",
"postActions/restore/manualInstructions/default/text": "Run 'dotnet restore'",
"postActions/restoreClient/description": "Restore NuGet packages required by this project.",
"postActions/restoreClient/manualInstructions/default/text": "Run 'dotnet restore'",
"postActions/open-file/description": "Opens Readme.txt in the editor"
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
{
"author": "Microsoft",
"name": "Aplicación Blazor para WebAssembly",
"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).",
"symbols/Framework/description": "Marco de destino del proyecto.",
"symbols/Framework/choices/net8.0/description": "net8.0 de destino",
"symbols/skipRestore/description": "Si se especifica, se omite la restauración automática del proyecto durante la creación.",
"symbols/Hosted/displayName": "ASP.NET Core _hospedado",
"symbols/Hosted/description": "Si se especifica, incluye un host de ASP.NET Core para la aplicación Blazor WebAssembly.",
"symbols/auth/choices/None/description": "Sin autenticación",
"symbols/auth/choices/Individual/description": "Autenticación individual",
"symbols/auth/choices/IndividualB2C/description": "Autenticación individual con Azure AD B2C",
Expand Down Expand Up @@ -40,7 +38,5 @@
"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.",
"postActions/restore/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
"postActions/restore/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
"postActions/restoreClient/description": "Restaure los paquetes NuGet necesarios para este proyecto.",
"postActions/restoreClient/manualInstructions/default/text": "Ejecutar \"dotnet restore\"",
"postActions/open-file/description": "Abre Readme.txt en el editor"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
{
"author": "Microsoft",
"name": "Application WebAssembly Blazor",
"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.",
"symbols/Framework/description": "Framework cible du projet.",
"symbols/Framework/choices/net8.0/description": "Cible net8.0",
"symbols/skipRestore/description": "S’il est spécifié, ignore la restauration automatique du projet lors de la création.",
"symbols/Hosted/displayName": "ASP.NET core _Hosted",
"symbols/Hosted/description": "S’il est spécifié, inclut un hôte ASP.NET Core pour l’application Blazor WebAssembly.",
"symbols/auth/choices/None/description": "Aucune authentification",
"symbols/auth/choices/Individual/description": "Authentification individuelle",
"symbols/auth/choices/IndividualB2C/description": "Authentification individuelle avec Azure AD B2C",
Expand Down Expand Up @@ -40,7 +38,5 @@
"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.",
"postActions/restore/description": "Restaurez les packages NuGet requis par ce projet.",
"postActions/restore/manualInstructions/default/text": "Exécuter « dotnet restore »",
"postActions/restoreClient/description": "Restaurez les packages NuGet requis par ce projet.",
"postActions/restoreClient/manualInstructions/default/text": "Exécuter « dotnet restore »",
"postActions/open-file/description": "Ouvre Readme.txt dans l’éditeur"
}
}
Loading