How to create an Ant Design Blazor project?

James Yeung 131 Reputation points MVP
2020-11-17T05:12:11.653+00:00

Ant Design Blazor is a set of enterprise-class UI components based on Ant Design and Blazor.

Github: https://github.com/ant-design-blazor/ant-design-blazor
Docs: https://ant-design-blazor.github.io/

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,404 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,126 questions
0 comments No comments
{count} votes

Accepted answer
  1. James Yeung 131 Reputation points MVP
    2020-11-17T05:20:27.53+00:00

    We have provided the dotnet new template to create a Boilerplate project out of the box:

    1. Install .NET Core SDK 3.1.300 or later, .NET 5 is even better.
    2. Install the template:

    dotnet new --install AntDesign.Templates

    1. Create the Boilerplate project with the template

    dotnet new antdesign -o MyAntDesignApp

    Options Description Type Default
    -f \ --full If specified, generates all pages of Ant Design Pro bool false
    -ho \ --host Specify the hosting model 'wasm' \ 'server' \ 'hosted' 'wasm'
    --no-restore If specified, skips the automatic restore of the project on create bool false

    40236-image.png

    5 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jorge Arana 1 Reputation point
    2021-09-08T15:21:24.69+00:00

    I can't install the server version.

    I have used the commands

    dotnet new antdesign -o MyAntDesignApp --full --host 'server'
    dotnet new antdesign -o MyAntDesignApp --full -ho \ 'server'
    dotnet new antdesign -o MyAntDesignApp --full -ho \'server'
    dotnet new antdesign -o MyAntDesignApp --full -ho\'server'
    dotnet new antdesign -o MyAntDesignApp --full -ho\ 'server'

    Could you make it more difficult?