.Net SDK
-
打開 PowerShell 或 CLI
-
dotnet new blazorserver -o BlazorApp --no-https-
-o BlazorApp:變更專案名稱為 BlazorApp 。- 專案名稱預設與資料夾名稱相同。
-
--no-https:代表預設關閉 https (即 使用 http)--no-https Whether to turn off HTTPS. This option only applies if Individual, IndividualB2C, SingleOrg, or MultiOrg aren't used for --auth. bool - Optional Default: false -au|--auth The type of authentication to use None - No authentication Individual - Individual authentication IndividualB2C - Individual authentication with Azure AD B2C SingleOrg - Organizational authentication for a single tenant MultiOrg - Organizational authentication for multiple tenants Windows - Windows authentication Default: None -
有任何看不懂的指令,都可以用
dotnet new BlazorServer -h查詢。
-
-
承上步驟
cd .\BlazorApp\:指向檔案BlazorApp -
dotnet watch- 結束記得按
ctrl+C
- 結束記得按
- Blazor Tutorial - Build your first Blazor app