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

Cannot have more than one TeamsApp in the same solution #13305

Open
ridomin opened this issue Feb 26, 2025 · 4 comments
Open

Cannot have more than one TeamsApp in the same solution #13305

ridomin opened this issue Feb 26, 2025 · 4 comments
Assignees
Labels
needs more info Need user to provide more info TA:E2E Team Area: E2E TA:PM PM investigation area

Comments

@ridomin
Copy link

ridomin commented Feb 26, 2025

One of the core features of Visual Studio is the concept of "solutions", where I can organize multiple projects in my SLN.

Seems like the TeamsToolkit only allows on TeamsApp per solution. So When I try to add another TeamsProject to an existing solution the ttkproj file does not get updated with the second app, leaving the solution in a weird state.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Feb 26, 2025
Copy link

👋 Hi @ridomin,

Thank you for reporting this issue! We want to let you know that:

⏱️ Our team will personally review your issue
🎯 You can expect a response within 2 business days

✨ This is an AI-generated initial response
🤖 AI-Generated Preliminary Analysis:

The issue you are experiencing is related to the limitation of the Teams Toolkit, which currently supports only one TeamsApp per Visual Studio solution. This limitation prevents you from adding multiple Teams projects to a single solution, leading to an inconsistent state when you attempt to do so.

Proposed Solutions

Here are some suggested solutions to address this issue:

  1. Separate Solutions:

    • Create separate solutions for each Teams project. You can manage different solutions for each TeamsApp you wish to develop.
    • This approach will ensure that each solution is properly configured and avoid conflicts.
  2. Manual Configuration:

    • If you need to manage multiple Teams projects within a single solution, you may need to manually configure the ttkproj file.
    • This involves ensuring that each project within the solution is correctly referenced and that the Teams Toolkit dependencies are properly set up in the ttkproj file.
    • Note that this approach is advanced and may require a thorough understanding of the configuration files used by the Teams Toolkit.
  3. Feature Request:

    • Consider submitting a feature request to the Teams Toolkit development team to support multiple Teams projects within a single solution.
    • You can submit the request on the GitHub repository for Teams Toolkit.

Steps for Manual Configuration

If you choose to manually configure the ttkproj file, here are some steps that might help:

  1. Open the ttkproj File:

    • Locate and open the ttkproj file in your solution directory.
  2. Add Project References:

    • Ensure that all Teams projects within your solution are referenced in the ttkproj file.
    • You may need to manually add the necessary project references and dependencies.
  3. Verify Dependencies:

    • Check that all dependencies required for each TeamsApp are included and correctly configured.
  4. Test Configuration:

    • After making the changes, test the solution to ensure that all Teams projects are functioning correctly.

Example of ttkproj Configuration

Here is a simplified example of how you might configure the ttkproj file to include multiple Teams projects:

<Project>
  <ItemGroup>
    <ProjectReference Include="..\Project1\Project1.csproj" />
    <ProjectReference Include="..\Project2\Project2.csproj" />
  </ItemGroup>
  <!-- Other configuration settings -->
</Project>

Conclusion

Unfortunately, the limitation of one TeamsApp per solution is currently a restriction of the Teams Toolkit. While you can manage separate solutions or manually configure the ttkproj file, submitting a feature request for this functionality might be the best long-term solution.

For further assistance, refer to the Teams Toolkit documentation and consider reaching out to the community on GitHub.


Note: This is an automated first response generated by AI. A human team member will review your issue and provide a more detailed response soon. We appreciate your patience!

@adashen adashen added the TA:PM PM investigation area label Feb 27, 2025
@adashen adashen added investigating TA:E2E Team Area: E2E and removed TA:E2E Team Area: E2E labels Feb 27, 2025
@HuihuiWu-Microsoft
Copy link
Contributor

@ridomin Multiple TeamsApp projects in one solution is not officially supported, you could raise a feature request to us if necessary. But in the same solution, there could be more than one projects except TeamsApp project. You need to configure manifest.json in TeamsApp project manually to make it work after adding new/existing projects.

@HuihuiWu-Microsoft HuihuiWu-Microsoft added needs more info Need user to provide more info and removed investigating needs attention This issue needs the attention of a contributor. labels Feb 27, 2025
@ridomin
Copy link
Author

ridomin commented Feb 27, 2025

how the csproj is linked from the ttkproj? I dont see any reference in the manifest.json.

Can I repurpose this issue as a feature? or do you prefer a new issue as Feature Request?

@microsoft-github-policy-service microsoft-github-policy-service bot added needs attention This issue needs the attention of a contributor. and removed needs more info Need user to provide more info labels Feb 27, 2025
@HuihuiWu-Microsoft
Copy link
Contributor

@ridomin You need to add capability pointing to the added project and update yml files to adapt provision/deploy lifecycles. We don't have specific documents since there're too many scenarios for different caps. But you could reference this doc to update.
If you think that's not enough and want more support from TTK, you could add 'feature-request' tag to repurpose this issue.

@HuihuiWu-Microsoft HuihuiWu-Microsoft added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Need user to provide more info TA:E2E Team Area: E2E TA:PM PM investigation area
Projects
None yet
Development

No branches or pull requests

4 participants