Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add launch setting for Outlook #10018

Merged
merged 4 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ provision:

{{#fileCreateOrUpdateJsonFile}} appsettings, BOT {{/fileCreateOrUpdateJsonFile}}

{{#botFrameworkCreate}} {{/botFrameworkCreate}}
{{#botFrameworkCreate}} m365extensions {{/botFrameworkCreate}}

{{#teamsAppValidateManifest}} {{/teamsAppValidateManifest}}

Expand All @@ -34,7 +34,13 @@ provision:
"applicationUrl": "\"https://localhost:7130;http://localhost:5130\"",
"launchUrl": "\"https://teams.microsoft.com?appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}\"",
"hotReload": true
}
},
{
"profileName": "Outlook (browser):",
"applicationUrl": "\"https://localhost:7130;http://localhost:5130\"",
"launchUrl": "\"https://outlook.office.com/mail?appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}\"",
"hotReload": true
}
]
}
{{/fileCreateOrUpdateJsonFile}}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
"ASPNETCORE_ENVIRONMENT": "Development"
},
"hotReloadProfile": "aspnetcore"
},
// Debug project within Outlook
"Outlook (browser)": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "https://outlook.office.com/mail?appTenantId=%TENANTID%&login_hint=%USERNAME%",
"applicationUrl": "https://localhost:7130;http://localhost:5130",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"hotReloadProfile": "aspnetcore"
}
//// Uncomment following profile to debug project only (without launching Teams)
//,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ resource botServiceMsTeamsChannel 'Microsoft.BotService/botServices/channels@202
channelName: 'MsTeamsChannel'
}
}

// Connect the bot service to Outlook, and other Microsoft 365 applications
resource botServiceM365ExtensionsChannel 'Microsoft.BotService/botServices/channels@2022-06-15-preview' = {
parent: botService
location: 'global'
name: 'M365Extensions'
properties: {
channelName: 'M365Extensions'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ provision:
description: ""
channels:
- name: msteams
- name: m365extensions

# Validate using manifest schema
- uses: teamsApp/validateManifest
Expand Down Expand Up @@ -103,6 +104,15 @@ provision:
launchBrowser: true
launchUrl: "https://teams.microsoft.com?appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}"
applicationUrl: "https://localhost:7130;http://localhost:5130"
environmentVariables:
ASPNETCORE_ENVIRONMENT: "Development"
hotReloadProfile: "aspnetcore"
Outlook (browser):
commandName: "Project"
dotnetRunMessages: true
launchBrowser: true
launchUrl: "https://outlook.office.com/mail?appTenantId=${{TEAMS_APP_TENANT_ID}}&login_hint=${{TEAMSFX_M365_USER_NAME}}"
applicationUrl: "https://localhost:7130;http://localhost:5130"
environmentVariables:
ASPNETCORE_ENVIRONMENT: "Development"
hotReloadProfile: "aspnetcore"