Custom tab app using Visual Studio 2022 - MS Teams + Toolkit - How to customize tabs?

Diogenes Carot 0 Reputation points
2023-10-25T19:21:08.8366667+00:00

Hi team,

I am working on creating a tab app to implement in Microsoft Teams, for which I am developing using Blazor in Visual Studio 2022 using the toolkit tool. Currently I am stuck in that I don't know how to create and configure a new tab.

In the 2nd image you can see that I have different tabs but they all point to /tab in my manifest.json for it to work.

I try to create a tab2.razor element and just by creating it I get error.

Could someone send me a step by step guide to know how to configure this tab2 so that it is different from the tab and can be pointed to in my manifest.json and work?

Thanks!

User's image

User's image

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Microsoft Teams | Development
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Diogenes Carot 0 Reputation points
    2023-10-26T14:37:01.7966667+00:00

    Resolved.
    Just copy and past tab.razor, using maybe tab2.razor

    and only delete @page "/"

    User's image

    0 comments No comments

  2. Ran Hou-MSFT 7,585 Reputation points Microsoft External Staff
    2023-10-27T06:56:32.0566667+00:00

    Hi @Diogenes Carot

    Thanks for your feedback above which shared more information and glad to know that your issue is resolved now! Since our forum has the policy that The question author cannot accept their own answer. They can only accept answers by others, and according to the scenario introduced here: Answering your own questions on Microsoft Q&A

    I would make a brief summary of this post so that other forum members could easily find useful information here:

    [Activating lagged copies - Summary]

    Issue Symptom:
    Custom tab app using Visual Studio 2022 - MS Teams + Toolkit - How to customize tabs?

    Solution:
    copy and paste tab.razor, using maybe tab2.razor and only delete @page "/".

    You could "Accept Answer" for this summary to close this thread, and your action would be helpful to other users who encounter the same issue and read this thread. Thanks for your understanding!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.