Skip to content

Latest commit

 

History

History
120 lines (79 loc) · 3.67 KB

how-to-build.md

File metadata and controls

120 lines (79 loc) · 3.67 KB

How to build bit platform


Projects

bit platform consists of multiple different projects/prodcuts with the following being the most important ones:

building each one of them requires some specific steps that are explained below.


Basic build requirements

Building each of the bit platform projects needs the following basic requirements other than the specific requirements that are explained later:


Projects build requirements

Building each bit platform project requires specific steps that are explained per project below:


bit Platform Website

This website only requires the basic requirements and can be simply built by runnning the following command in the Bit.Websites.Platform.Web project folder:

dotnet build

and to run the project you just need to execute the following command in the same folder:

dotnet watch

bit BlazorUI (Blazor components)

The bit BlazorUI product has many sub-projects with the main one being the BlazorUI project itself.

BlazorUI project

To build the BlazorUI project you only need the basic requirements and simply run the following command in its folder (Bit.BlazorUI in the src folder):

dotnet build

BlazorUI Demo project

Another project is the bit BlazorUI Demo project which has two different projects (Web & App) with different requirements to build.

The Web project just like the bit platform website only needs the basic requirements and can be simply built by running the following command in the Bit.BlazorUI.Demo.Client.Web project folder (Demo/Client/Web):

dotnet build

The App project unlike the Web needs the MAUI workloads to build. This requirement can be installed with the following commands:

Linux:

dotnet workload install maui-android --sdk-version=8.0.100-rc.1.23455.8

Note: because of MAUI shortcomings, for now only the android version can be built on Linux.

Windows & macOS:

dotnet workload install maui --sdk-version=8.0.100-rc.1.23455.8

To build the App project run the following command in the Bit.BlazorUI.Demo.Client.App project folder (Demo/Client/App):

dotnet build

bit Project Templates

Like the bit BlazorUI Demo project, the project templates (located in the src/Templates folder) have two different projects (Web & App) with different requirements to build.

For exmaple for the AdminPanel porject template in the AdminPanel/Bit.AdminPanel folder:

The Web project just like the bit platform website only needs the basic requirements and can be simply built by running the following command in the AdminPanel.Client.Web project folder (src/Client/Web):

dotnet build

The App project unlike the Web needs the MAUI workloads too. This requirement can be installed with the following commands:

Linux:

dotnet workload install maui-android --sdk-version=8.0.100-rc.1.23455.8

Note: because of MAUI shortcomings, for now only the android version can be built on Linux.

Windows & macOS:

dotnet workload install maui --sdk-version=8.0.100-rc.1.23455.8

To build the App project run the following command in the AdminPanel.Client.App project folder (src/Client/Web):

dotnet build