How to create an Ant Design Blazor project?

James Yeung 131 Reputation points
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/

Developer technologies | .NET | Blazor
Developer technologies | .NET | .NET Runtime
0 comments No comments
{count} votes

Answer accepted by question author
  1. James Yeung 131 Reputation points
    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?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.