Skip to content

Debug with Multiple Profiles in Teams Toolkit for Visual Studio

Alive-Fish edited this page Apr 18, 2024 · 5 revisions

Prerequisite

  1. Important: Visual Studio version >= 17.10 Preview 3

Debug with Multi-Project Launch Profiles in Visual Studio Preview Version

To use this feature:

  1. Go to Tools -> Options -> Preview Features
  2. Select 'Enable Multi-Project Launch Profiles'
    image

Start the app in Outlook

  1. Select Outlook (browser) in debug dropdown menu
    image
  2. Press F5, or select Debug > Start Debugging menu in Visual Studio
    image

Start the app in Teams App Test Tool

  1. Select Teams App Test Tool (browser) in the debug dropdown menu
    image
  2. Press F5, or select Debug > Start Debugging menu in Visual Studio
    image

Others

Same as above, select the pre-defined profile from the debug dropdown menu.

Debug with Multiple Profiles in Visual Studio Generally Available Version

Start the app in Outlook

  1. Select TeamsApp in the project selection dropdown menu.
    image
  2. Select Outlook (browser) in the debug dropdown menu.
    image
  3. Select Configure Startup Projects... in the debug dropdown menu.
    image
  4. In the popup dialog, select Multiple startup projects and configure the Action as Start. Then click "Apply" and "OK".
    image
  5. Press F5, or select Debug > Start Debugging menu in Visual Studio
    image

Start the app in Teams App Test Tool

  1. Select TeamsApp in the project selection dropdown menu.
    image
  2. Select Teams App Test Tool (browser) in the debug dropdown menu.
    image
  3. Select {{YOUR_CSHARP_PROJECT}} in the project selection dropdown menu, such as MyTeamsApp1.
    image
  4. Select Teams App Test Tool in the debug dropdown menu.
    image
  5. Select Configure Startup Projects... in the debug dropdown menu.
    image
  6. In the popup dialog, select Multiple startup projects and configure the Action as Start. Then click "Apply" and "OK".
    image
  7. Press F5, or select Debug > Start Debugging menu in Visual Studio
    image

Others

Same as above, select the correct profile of the TeamsApp and {{YOUR_CSHARP_PROJECT}}, configure Multiple startup projects and then start it.

Clone this wiki locally