question

JamesYeung avatar image
0 Votes"
JamesYeung asked JamesYeung commented

How to create an Ant Design Blazor project?

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/

dotnet-runtimedotnet-aspnet-core-blazor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesYeung avatar image
5 Votes"
JamesYeung answered JamesYeung edited

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



image.png (449.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JorgeArana-3700 avatar image
0 Votes"
JorgeArana-3700 answered JamesYeung commented

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?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, this is a known issue.

For workaround, please put the _Host.cshtml file into Pages folder.

0 Votes 0 ·