Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8bd591e
Updated bot-suggested-actions csharp sample.
YugalPradhan31 Dec 10, 2025
c0fbebb
Update sample csharp bot-adaptive-card-actions
YugalPradhan31 Dec 10, 2025
ab25a03
Updated csharp sample bot-configuration-app-auth
YugalPradhan31 Dec 11, 2025
2b885ab
updated build pipeline
YugalPradhan31 Dec 11, 2025
db873cb
Fixed Comments
YugalPradhan31 Dec 19, 2025
a6ae4d8
Updated Readme to prioritize devtunnels.
YugalPradhan31 Dec 21, 2025
7240a64
updated bot-suggested-actions as per comments.
YugalPradhan31 Dec 21, 2025
9e33cc7
Updated bot-configuration-app-auth to fix comments.
YugalPradhan31 Dec 21, 2025
7bc312e
Updated readme and port.
YugalPradhan31 Dec 21, 2025
2cccd7e
Removed BotType
YugalPradhan31 Dec 21, 2025
fbd589a
Merge remote-tracking branch 'origin/main' into v-ypradhan/Teams_SDK_…
Harikrishnan-MSFT Dec 22, 2025
9052505
shifting bot-suggested-actions and bot-configuration-app-auth to othe…
YugalPradhan31 Dec 22, 2025
7bd5790
Removed bot-adaptive-card-actions-csharp.yml file.
YugalPradhan31 Dec 22, 2025
1e4b7ad
added bot-adaptive-card-actions-csharp.yml
YugalPradhan31 Dec 22, 2025
51addd1
Updated Readme text
YugalPradhan31 Dec 22, 2025
50bf2de
Added User File
YugalPradhan31 Dec 23, 2025
279d621
Updated Soluction file
YugalPradhan31 Dec 23, 2025
78ace60
updated code to use Cards API
YugalPradhan31 Dec 23, 2025
352c082
updated AdaptiveCardActions.slnLaunch.user
YugalPradhan31 Dec 23, 2025
0030343
Deleted User file.
YugalPradhan31 Dec 23, 2025
ded9cb7
Revert "Deleted User file."
YugalPradhan31 Dec 23, 2025
5c1fe97
Added launchSettings.json in .gitignore and added launchSettings.exam…
YugalPradhan31 Dec 23, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/bot-adaptive-card-actions-csharp.yml

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having one action per sample/language will lead to 202 actions. We should have only one, or one per language max.

Copy link
Contributor Author

@YugalPradhan31 YugalPradhan31 Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleted the file, we will update one single file.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
AZURE_WEBAPP_PACKAGE_PATH: 'samples/bot-adaptive-card-actions/csharp/published' # set this to the path to your web app project, defaults to the repository root
PROJECT_PATH: 'samples/bot-adaptive-card-actions/csharp/AdaptiveCardActions/AdaptiveCardActions.csproj'
AZURE_WEBAPP_NAME: 'bot-adaptive-card-actions' # set this to your application's name
DOTNET_VERSION: '6.0.x' # set this to the dot net version to use
DOTNET_VERSION: '10.0.x' # set this to the dot net version to use
jobs:
build:
runs-on: windows-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bot-suggested-actions-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ env:
#Change the webapp package path. This will contain the code to be published after build
#Change the project path to your project file path.
AZURE_WEBAPP_PACKAGE_PATH: 'samples/bot-suggested-actions/csharp/published' # set this to the path to your web app project, defaults to the repository root
PROJECT_PATH: 'samples/bot-suggested-actions/csharp/SuggestedActions/SuggestedActionsBot.csproj'
PROJECT_PATH: 'samples/bot-suggested-actions/csharp/SuggestedActions/SuggestedActions.csproj'
AZURE_WEBAPP_NAME: 'bot-suggested-actions' # set this to your application's name
DOTNET_VERSION: '6.0.x' # set this to the dot net version to use
DOTNET_VERSION: '10.0.x' # set this to the dot net version to use
jobs:
build:
runs-on: windows-latest
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-complete-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ jobs:
name: 'bot-message-reaction'
version: '8.0.x'

- project_path: 'samples/bot-suggested-actions/csharp/SuggestedActions/SuggestedActionsBot.csproj'
- project_path: 'samples/bot-suggested-actions/csharp/SuggestedActions/SuggestedActions.csproj'
name: 'bot-suggested-actions'
version: '6.0.x'
version: '10.0.x'

- project_path: 'samples/bot-task-module/csharp/TeamsTaskModule.csproj'
name: 'bot-task-module'
Expand Down Expand Up @@ -414,7 +414,7 @@ jobs:

- project_path: 'samples/bot-adaptive-card-actions/csharp/AdaptiveCardActions/AdaptiveCardActions.csproj'
name: 'bot-adaptive-card-actions'
version: '6.0.x'
version: '10.0.x'

- project_path: 'samples/bot-formatting-cards/csharp/BotFormattingCards/BotFormattingCards.csproj'
name: 'bot-formatting-cards'
Expand Down Expand Up @@ -460,9 +460,9 @@ jobs:
name: 'bot-configuration-app'
version: '6.0.x'

- project_path: 'samples/bot-configuration-app-auth/csharp/Bot configuration/Bot Configuration.csproj'
- project_path: 'samples/bot-configuration-app-auth/csharp/Bot configuration/Bot configuration.csproj'
name: 'bot-configuration-app-auth'
version: '6.0.x'
version: '10.0.x'

- project_path: 'samples/app-HR-talent/csharp/src/TeamsTalentMgmtAppV6.csproj'
name: 'app-HR-talent'
Expand Down
37 changes: 0 additions & 37 deletions samples/bot-adaptive-card-actions/csharp/AdaptiveCardActions.sln

This file was deleted.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is usually gitignored.. what's the reason to commit it?

Copy link
Contributor Author

@YugalPradhan31 YugalPradhan31 Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is required, if we remove this , these options will not be visible.
image

Original file line number Diff line number Diff line change
@@ -1,31 +1,52 @@
[
{
"Name": "Microsoft Teams (browser)",
"Name": "Microsoft 365 Agents Playground (browser)",
"Projects": [
{
"Path": "AdaptiveCardActions\\AdaptiveCardActions.csproj",
"Action": "Start",
"DebugTarget": "Start Project"
"Path": "M365Agent\\M365Agent.atkproj",
"Name": "M365Agent\\M365Agent.atkproj",
"Action": "StartWithoutDebugging",
"DebugTarget": "Microsoft 365 Agents Playground (browser)"
},
{
"Path": "M365Agent\\M365Agent.ttkproj",
"Action": "StartWithoutDebugging",
"DebugTarget": "Microsoft Teams (Browser)"
"Path": "AdaptiveCardActions\\AdaptiveCardActions.csproj",
"Name": "AdaptiveCardActions\\AdaptiveCardActions.csproj",
"Action": "Start",
"DebugTarget": "Microsoft 365 Agents Playground"
}
]
},
{
"Name": "Microsoft Teams (browser) (skip update app)",
"Name": "Microsoft Teams (browser)",
"Projects": [
{
"Path": "M365Agent\\M365Agent.atkproj",
"Name": "M365Agent\\M365Agent.atkproj",
"Action": "StartWithoutDebugging",
"DebugTarget": "Microsoft Teams (browser)"
},
{
"Path": "AdaptiveCardActions\\AdaptiveCardActions.csproj",
"Name": "AdaptiveCardActions\\AdaptiveCardActions.csproj",
"Action": "Start",
"DebugTarget": "Start Project"
},
}
]
},
{
"Name": "Microsoft Teams (browser) (skip update app)",
"Projects": [
{
"Path": "M365Agent\\M365Agent.ttkproj",
"Path": "M365Agent\\M365Agent.atkproj",
"Name": "M365Agent\\M365Agent.atkproj",
"Action": "StartWithoutDebugging",
"DebugTarget": "Microsoft Teams (browser) (skip update app)"
},
{
"Path": "AdaptiveCardActions\\AdaptiveCardActions.csproj",
"Name": "AdaptiveCardActions\\AdaptiveCardActions.csproj",
"Action": "Start",
"DebugTarget": "Start Project"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Solution>
<Project Path="AdaptiveCardActions/AdaptiveCardActions.csproj" />
<Project Path="M365Agent/M365Agent.atkproj" Type="a9e3f50b-275e-4af7-adce-8be12d41e305">
<Deploy />
</Project>
</Solution>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ env/.env.*.user
env/.env.local
appsettings.Development.json
.deployment
appsettings.Playground.json

# User-specific files
*.user
Expand All @@ -22,4 +23,8 @@ bld/
[Ll]og/

# Notification local store
.notification.localstore.json
.notification.localstore.json
.notification.playgroundstore.json

# devTools
devTools/

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,25 +1,52 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>14.0</LangVersion>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to use LangVersion?

We should enable nullable support

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed LangVersion and added Nullable support.
image

</PropertyGroup>

<ItemGroup>
<PackageReference Include="AdaptiveCards.Rendering.Html" Version="2.7.3" />
<PackageReference Include="AdaptiveCards.Templating" Version="1.3.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
<PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.18.1" />
<PackageReference Include="Azure.Identity" Version="1.13.1" />
<PackageReference Include="Microsoft.Teams.Api" Version="2.0.*" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reference only the top level package

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated and only kept by default created packages
image

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you only need Plugins.AspNetCore, all the other packages are transitive dependencies and dont need to be in the csproj

<PackageReference Include="Microsoft.Teams.Apps" Version="2.0.*" />
<PackageReference Include="Microsoft.Teams.Plugins.AspNetCore" Version="2.0.*" />
<PackageReference Include="Microsoft.Teams.Common" Version="2.0.*" />
<PackageReference Include="AdaptiveCards.Templating" Version="1.6.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to explicitly reference newtonsoft?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed it.

</ItemGroup>

<!-- Exclude old Bot Builder files from compilation -->
<ItemGroup>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove these

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Compile Remove="csharp\**" />
<Content Remove="csharp\**" />
<EmbeddedResource Remove="csharp\**" />
<None Remove="csharp\**" />
</ItemGroup>

<!-- Exclude generated PolySharp files -->
<ItemGroup>
<Compile Remove="obj\**\PolySharp.SourceGenerators\**\*.g.cs" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is this used? I'm not aware of the need to use PolySharp

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

</ItemGroup>

<!-- Exclude local settings from publish -->
<ItemGroup>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove, use defaults

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

<Content Remove="appsettings.Development.json" />
<Content Include="appsettings.Development.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>None</CopyToPublishDirectory>
</Content>
<Content Remove="appsettings.Playground.json" />
<Content Include="appsettings.Playground.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>None</CopyToPublishDirectory>
</Content>
</ItemGroup>


<!-- Include Cards folder in output -->
<ItemGroup>
<Folder Include="Images\" />
</ItemGroup>

</Project>
<None Include="Cards\**\*.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
Loading