diff --git a/docs/en/Startup-Templates/Index.md b/docs/en/Startup-Templates/Index.md index 68ab3369f1..76c0488031 100644 --- a/docs/en/Startup-Templates/Index.md +++ b/docs/en/Startup-Templates/Index.md @@ -7,3 +7,4 @@ While you can start with an empty project and add needed packages manually, star * [**module**](Module.md): Module/service template. * [**console**](Console.md): Console template. * [**WPF**](WPF.md): WPF template. +* [**MAUI**](MAUI.md): MAUI template. diff --git a/docs/en/Startup-Templates/MAUI.md b/docs/en/Startup-Templates/MAUI.md new file mode 100644 index 0000000000..ab171ddef1 --- /dev/null +++ b/docs/en/Startup-Templates/MAUI.md @@ -0,0 +1,27 @@ +# MAUI Application Startup Template + +This template is used to create a minimalist MAUI application project. + +## How to Start With? + +First, install the [ABP CLI](../CLI.md) if you haven't installed before: + +````bash +dotnet tool install -g Volo.Abp.Cli +```` + +Then use the `abp new` command in an empty folder to create a new solution: + +````bash +abp new Acme.MyMauiApp -t maui +```` + +`Acme.MyMauiApp` is the solution name, like *YourCompany.YourProduct*. You can use single level, two-levels or three-levels naming. + +## Solution Structure + +After you use the above command to create a solution, you will have a solution like shown below: + +![basic-maui-application-solution](../images/basic-maui-application-solution.png) + +* `HelloWorldService` is a sample service that implements the `ITransientDependency` interface to register this service to the [dependency injection](../Dependency-Injection.md) system. \ No newline at end of file diff --git a/docs/en/images/basic-maui-application-solution.png b/docs/en/images/basic-maui-application-solution.png new file mode 100644 index 0000000000..c1dd24bd32 Binary files /dev/null and b/docs/en/images/basic-maui-application-solution.png differ diff --git a/docs/zh-Hans/Startup-Templates/Index.md b/docs/zh-Hans/Startup-Templates/Index.md index 2977003723..cdd5b8c332 100644 --- a/docs/zh-Hans/Startup-Templates/Index.md +++ b/docs/zh-Hans/Startup-Templates/Index.md @@ -8,3 +8,4 @@ * [**module**](Module.md): 模块/服务模板. * [**console**](Console.md): 控制台模板. * [**WPF**](WPF.md): WPF模板. +* [**MAUI**](MAUI.md): MAUI模板. diff --git a/docs/zh-Hans/Startup-Templates/MAUI.md b/docs/zh-Hans/Startup-Templates/MAUI.md new file mode 100644 index 0000000000..d268da0942 --- /dev/null +++ b/docs/zh-Hans/Startup-Templates/MAUI.md @@ -0,0 +1,27 @@ +# MAUI应用程序启动模板 + +此模板用于创建一个最小的依赖关系的ABP MAUI应用程序项目. + +## 如何开始? + +首先,如果你没有安装[ABP CLI](../CLI.md),请先安装它: + +````bash +dotnet tool install -g Volo.Abp.Cli +```` + +在一个空文件夹使用 `abp new` 命令创建新解决方案: + +````bash +abp new Acme.MyMauiApp -t maui +```` + +`Acme.MyMauiApp` 是解决方案的名称, 如*YourCompany.YourProduct*. 你可以使用单级或多级名称. + +## 解决方案结构 + +使用以上命令创建解决方案后,你会得到如下所示的解决方案: + +![basic-maui-application-solution](../images/basic-maui-application-solution.png) + +* `HelloWorldService` 是一个实现了 `ITransientDependency` 接口的示例服务. 它会自动注册到[依赖注入](../Dependency-Injection.md)系统. \ No newline at end of file diff --git a/docs/zh-Hans/images/basic-maui-application-solution.png b/docs/zh-Hans/images/basic-maui-application-solution.png new file mode 100644 index 0000000000..c1dd24bd32 Binary files /dev/null and b/docs/zh-Hans/images/basic-maui-application-solution.png differ diff --git a/templates/maui/src/MyCompanyName.MyProjectName/MyCompanyName.MyProjectName.csproj b/templates/maui/src/MyCompanyName.MyProjectName/MyCompanyName.MyProjectName.csproj index fb3fc0a74a..73a3c5c110 100644 --- a/templates/maui/src/MyCompanyName.MyProjectName/MyCompanyName.MyProjectName.csproj +++ b/templates/maui/src/MyCompanyName.MyProjectName/MyCompanyName.MyProjectName.csproj @@ -17,7 +17,7 @@ MyCompanyName.MyProjectName - com.companyname.mycompanyname.myprojectname + com.mycompanyname.myprojectname 27317750-B571-4690-B433-B358B2480E01