From 14f3e747e9337b260893b0fc891d607dd213d817 Mon Sep 17 00:00:00 2001 From: Hui Miao Date: Sun, 26 Jan 2025 13:21:16 +0800 Subject: [PATCH] refactor: add project capability to DA templates (#13108) --- .../{{ProjectName}}.csproj.tpl | 14 ++++++++++++-- ...{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl | 7 ++++++- .../{{ProjectName}}.csproj.tpl | 7 ++++++- ...{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl | 7 ++++++- .../{{ProjectName}}.csproj.tpl | 7 ++++++- ...{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl | 7 ++++++- .../{{ProjectName}}.csproj.tpl | 5 +++++ 7 files changed, 47 insertions(+), 7 deletions(-) diff --git a/templates/csharp/api-plugin-existing-api/{{ProjectName}}.csproj.tpl b/templates/csharp/api-plugin-existing-api/{{ProjectName}}.csproj.tpl index 537900ac02..3b1ec1deb0 100644 --- a/templates/csharp/api-plugin-existing-api/{{ProjectName}}.csproj.tpl +++ b/templates/csharp/api-plugin-existing-api/{{ProjectName}}.csproj.tpl @@ -7,7 +7,12 @@ - + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + + {{/DeclarativeCopilot}} @@ -20,7 +25,12 @@ - + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + + {{/DeclarativeCopilot}} diff --git a/templates/csharp/api-plugin-from-scratch-bearer/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl b/templates/csharp/api-plugin-from-scratch-bearer/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl index ba098df3a6..8ceb9d38f1 100644 --- a/templates/csharp/api-plugin-from-scratch-bearer/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl +++ b/templates/csharp/api-plugin-from-scratch-bearer/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl @@ -5,6 +5,11 @@ - + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + + {{/DeclarativeCopilot}} diff --git a/templates/csharp/api-plugin-from-scratch-bearer/{{ProjectName}}.csproj.tpl b/templates/csharp/api-plugin-from-scratch-bearer/{{ProjectName}}.csproj.tpl index 176709b438..804bba484c 100644 --- a/templates/csharp/api-plugin-from-scratch-bearer/{{ProjectName}}.csproj.tpl +++ b/templates/csharp/api-plugin-from-scratch-bearer/{{ProjectName}}.csproj.tpl @@ -11,7 +11,12 @@ {{^isNewProjectTypeEnabled}} - + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + + {{/DeclarativeCopilot}} diff --git a/templates/csharp/api-plugin-from-scratch-oauth/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl b/templates/csharp/api-plugin-from-scratch-oauth/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl index efc9bc7372..ce4f797ea8 100644 --- a/templates/csharp/api-plugin-from-scratch-oauth/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl +++ b/templates/csharp/api-plugin-from-scratch-oauth/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl @@ -2,6 +2,11 @@ - + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + + {{/DeclarativeCopilot}} diff --git a/templates/csharp/api-plugin-from-scratch-oauth/{{ProjectName}}.csproj.tpl b/templates/csharp/api-plugin-from-scratch-oauth/{{ProjectName}}.csproj.tpl index 39df85462f..8785e1e499 100644 --- a/templates/csharp/api-plugin-from-scratch-oauth/{{ProjectName}}.csproj.tpl +++ b/templates/csharp/api-plugin-from-scratch-oauth/{{ProjectName}}.csproj.tpl @@ -11,7 +11,12 @@ {{^isNewProjectTypeEnabled}} - + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + + {{/DeclarativeCopilot}} diff --git a/templates/csharp/api-plugin-from-scratch/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl b/templates/csharp/api-plugin-from-scratch/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl index efc9bc7372..ce4f797ea8 100644 --- a/templates/csharp/api-plugin-from-scratch/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl +++ b/templates/csharp/api-plugin-from-scratch/.{{NewProjectTypeName}}/{{NewProjectTypeName}}.{{NewProjectTypeExt}}.tpl @@ -2,6 +2,11 @@ - + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + + {{/DeclarativeCopilot}} diff --git a/templates/csharp/api-plugin-from-scratch/{{ProjectName}}.csproj.tpl b/templates/csharp/api-plugin-from-scratch/{{ProjectName}}.csproj.tpl index 176709b438..1e12345638 100644 --- a/templates/csharp/api-plugin-from-scratch/{{ProjectName}}.csproj.tpl +++ b/templates/csharp/api-plugin-from-scratch/{{ProjectName}}.csproj.tpl @@ -11,7 +11,12 @@ {{^isNewProjectTypeEnabled}} + {{#DeclarativeCopilot}} + + {{/DeclarativeCopilot}} + {{^DeclarativeCopilot}} + {{/DeclarativeCopilot}}