Skip to content

Commit 5af9512

Browse files
authored
feat: add deep link for DA templates (OfficeDev#13062)
1 parent e8ef0d3 commit 5af9512

File tree

6 files changed

+51
-0
lines changed

6 files changed

+51
-0
lines changed

templates/csharp/api-plugin-from-scratch-bearer/.{{NewProjectTypeName}}/launchSettings.json.tpl

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"profiles": {
3+
{{^DeclarativeCopilot}}
34
// Launch project within the Microsoft 365 app
45
"Microsoft 365 app (browser)": {
56
"commandName": "Project",
@@ -10,5 +11,13 @@
1011
"commandName": "Project",
1112
"launchUrl": "https://teams.microsoft.com?appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}",
1213
}
14+
{{/DeclarativeCopilot}}
15+
{{#DeclarativeCopilot}}
16+
// Launch project within Copilot
17+
"Copilot (browser)": {
18+
"commandName": "Project",
19+
"launchUrl": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${{AGENT_HINT}}?auth=2"
20+
}
21+
{{/DeclarativeCopilot}}
1322
}
1423
}

templates/csharp/api-plugin-from-scratch-bearer/teamsapp.local.yml.tpl

+8
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ provision:
107107
target: ./Properties/launchSettings.json
108108
content:
109109
profiles:
110+
{{^DeclarativeCopilot}}
110111
Microsoft 365 app (browser):
111112
commandName: "Project"
112113
dotnetRunMessages: true
@@ -124,4 +125,11 @@ provision:
124125
environmentVariables:
125126
ASPNETCORE_ENVIRONMENT: "Development"
126127
hotReloadProfile: "aspnetcore"
128+
{{/DeclarativeCopilot}}
129+
{{#DeclarativeCopilot}}
130+
"Copilot (browser)": {
131+
"commandName": "Project",
132+
"launchUrl": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${{AGENT_HINT}}?auth=2"
133+
}
134+
{{/DeclarativeCopilot}}
127135
{{/isNewProjectTypeEnabled}}

templates/csharp/api-plugin-from-scratch-oauth/.{{NewProjectTypeName}}/launchSettings.json.tpl

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"profiles": {
3+
{{^DeclarativeCopilot}}
34
// Launch project within the Microsoft 365 app
45
"Microsoft 365 app (browser)": {
56
"commandName": "Project",
@@ -10,5 +11,13 @@
1011
"commandName": "Project",
1112
"launchUrl": "https://teams.microsoft.com?appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}",
1213
}
14+
{{/DeclarativeCopilot}}
15+
{{#DeclarativeCopilot}}
16+
// Launch project within Copilot
17+
"Copilot (browser)": {
18+
"commandName": "Project",
19+
"launchUrl": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${{AGENT_HINT}}?auth=2"
20+
}
21+
{{/DeclarativeCopilot}}
1322
}
1423
}

templates/csharp/api-plugin-from-scratch-oauth/teamsapp.local.yml.tpl

+8
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ provision:
163163
target: ./Properties/launchSettings.json
164164
content:
165165
profiles:
166+
{{^DeclarativeCopilot}}
166167
Microsoft 365 app (browser):
167168
commandName: "Project"
168169
dotnetRunMessages: true
@@ -180,4 +181,11 @@ provision:
180181
environmentVariables:
181182
ASPNETCORE_ENVIRONMENT: "Development"
182183
hotReloadProfile: "aspnetcore"
184+
{{/DeclarativeCopilot}}
185+
{{#DeclarativeCopilot}}
186+
"Copilot (browser)": {
187+
"commandName": "Project",
188+
"launchUrl": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${{AGENT_HINT}}?auth=2"
189+
}
190+
{{/DeclarativeCopilot}}
183191
{{/isNewProjectTypeEnabled}}

templates/csharp/api-plugin-from-scratch/.{{NewProjectTypeName}}/launchSettings.json.tpl

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"profiles": {
3+
{{^DeclarativeCopilot}}
34
// Launch project within the Microsoft 365 app
45
"Microsoft 365 app (browser)": {
56
"commandName": "Project",
@@ -10,5 +11,13 @@
1011
"commandName": "Project",
1112
"launchUrl": "https://teams.microsoft.com?appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}",
1213
}
14+
{{/DeclarativeCopilot}}
15+
{{#DeclarativeCopilot}}
16+
// Launch project within Copilot
17+
"Copilot (browser)": {
18+
"commandName": "Project",
19+
"launchUrl": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${{AGENT_HINT}}?auth=2"
20+
}
21+
{{/DeclarativeCopilot}}
1322
}
1423
}

templates/csharp/api-plugin-from-scratch/teamsapp.local.yml.tpl

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ provision:
6060
target: ./Properties/launchSettings.json
6161
content:
6262
profiles:
63+
{{^DeclarativeCopilot}}
6364
Microsoft 365 app (browser):
6465
commandName: "Project"
6566
dotnetRunMessages: true
@@ -77,4 +78,11 @@ provision:
7778
environmentVariables:
7879
ASPNETCORE_ENVIRONMENT: "Development"
7980
hotReloadProfile: "aspnetcore"
81+
{{/DeclarativeCopilot}}
82+
{{#DeclarativeCopilot}}
83+
"Copilot (browser)": {
84+
"commandName": "Project",
85+
"launchUrl": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${{AGENT_HINT}}?auth=2"
86+
}
87+
{{/DeclarativeCopilot}}
8088
{{/isNewProjectTypeEnabled}}

0 commit comments

Comments
 (0)