From 987be1f1acac7435e697529d70de3f04b451b29a Mon Sep 17 00:00:00 2001 From: ysmoradi Date: Wed, 12 Feb 2025 14:38:12 +0100 Subject: [PATCH] Remove --windows parameter of the Boilerplate from platform website docs (#9866) --- .../Templates/Templates05CreateProjectPage.razor | 13 ------------- .../Templates/Templates05CreateProjectPage.razor.cs | 11 ----------- 2 files changed, 24 deletions(-) diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor index edc5375a8f..c112c24b87 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor @@ -341,19 +341,6 @@ Integrating Cloudflare and placing your backend behind the Cloudflare CDN will significantly enhance the app's performance while reducing server load. - -
- Windows - -
-
- - @GetWindowsCommand() - - If you set the windows parameter to false, the Maui project will still be created, - but no separate Windows application will be included. -
-

diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs index d23f55a93d..36d9836e81 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs @@ -6,7 +6,6 @@ public partial class Templates05CreateProjectPage { private string name = "MyFirstProject"; - private Parameter windows = new() { Value = true, Default = true }; private Parameter cloudflare = new() { Value = true, Default = true }; private Parameter sample = new() { Value = false, Default = false }; private Parameter sentry = new() { Value = false, Default = false }; @@ -127,11 +126,6 @@ private string GetFinalCommand() finalCommand.Append(GetModuleCommand()); } - if (windows.IsModified) - { - finalCommand.Append(GetWindowsCommand()); - } - if (cloudflare.IsModified) { finalCommand.Append(GetCloudflareCommand()); @@ -205,11 +199,6 @@ private string GetModuleCommand() return $"--module {module.Value} "; } - private string GetWindowsCommand() - { - return $"--windows{(windows.Value ? string.Empty : " false")} "; - } - private string GetCloudflareCommand() { return $"--cloudflare{(cloudflare.Value ? string.Empty : " false")} ";