OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
439 stars 172 forks source link

.NET / Blazor support for Teams development #1215

Open thomyg opened 3 years ago

thomyg commented 3 years ago

Congrats to the team for the new release! Really cool to see the effort you invest in Teams and how we, as developers, can extend and fine tune our customer's experience.

As I'm not a "React person" I'm keen to see your plans to bring the same type of tools to Visual Studio and/or the .NET world. As there are so many opportunities to use .NET for Teams development already, I'm sure you already think of ways to make things easier also for this group of developers.

Happy to help in any way, shape, or form.

adrianhall commented 3 years ago

Hi @thomyg ,

Great news for you! We have released a dotnet template for Blazor server, which includes new Fluent controls to ensure your app looks like it belongs in Teams, and we have a Visual Studio extension that implements the same. Some links below for you:

Prerequisites: https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/prerequisites?tabs=vs A tutorial: https://docs.microsoft.com/en-us/microsoftteams/platform/get-started/first-app-blazor?tabs=vs The dotnet new template NuGet: https://www.nuget.org/packages/Microsoft.TeamsFx.VisualStudio.ProjectTemplates/0.1.43-beta The VSIX extension: https://marketplace.visualstudio.com/items?itemName=msft-vsteamstoolkit.vsteamstoolkit

I hope this helps!

thomyg commented 3 years ago

Hi @adrianhall

That's super cool.

First thoughts after 5 minutes browsing through the code:

adrianhall commented 3 years ago

Thanks for the ideas! We're actively working on the Visual Studio experience. I've filed these in our internal backlog, and I'll reach out separately so you can pass the ideas directly to us.

guru98 commented 3 years ago

I agree with thomyg suggestion. Teams apps are, at the end, apps with a context in that context you can know that you are in a personal tab, channel tab, meeting tab without this info is almost un-useful. Authentication and easy access to a graph client is relevant for any app but the context is also really relevant.

therealjohn commented 3 years ago

Agreed! I've created a work item for us to track designing and adding a feature to provide context to the blazor app.

StephenOTT commented 2 years ago

Any movement on this? The blazor examples seem to have been removed from the docs. (https://docs.microsoft.com/en-us/microsoftteams/platform/sbs-gs-blazor?tabs=vs)

eriolchan commented 2 years ago

@therealjohn I also find the get started document of Blazor has been removed from docs. Can you provide more information for @StephenOTT ?

therealjohn commented 2 years ago

It seems the docs were hidden while they were updated to correctly match the changes made to the VS 2019 extension. I will investigate and get them back up. Sorry for the confusion!