Skip to content

Could not resolve SDK "Microsoft.TeamsFx.Sdk". Outdated dependencies #1811

@rido-min

Description

@rido-min

When I open the folder samples/bot-sso-adaptivecard/csharp in vscode with the toolkit installed I got these errors in the output window

2025-10-28 22:16:16.560 [info] C:\_code\Microsoft-Teams-Samples\samples\bot-sso-adaptivecard\csharp\M365Agent\M365Agent.ttkproj : error : Could not resolve SDK "Microsoft.TeamsFx.Sdk". Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
C:\_code\Microsoft-Teams-Samples\samples\bot-sso-adaptivecard\csharp\M365Agent\M365Agent.ttkproj : error :   SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" returned null.
C:\_code\Microsoft-Teams-Samples\samples\bot-sso-adaptivecard\csharp\M365Agent\M365Agent.ttkproj : error :   The NuGetSdkResolver did not resolve this SDK because there was no version specified in the project or global.json.
2025-10-28 22:16:16.930 [info] C:\_code\Microsoft-Teams-Samples\samples\bot-sso-adaptivecard\csharp\M365Agent\M365Agent.ttkproj : warning NU1503: Skipping restore for project 'C:\_code\Microsoft-Teams-Samples\samples\bot-sso-adaptivecard\csharp\M365Agent\M365Agent.ttkproj'. The project file may be invalid or missing targets required for restore. [C:\_code\Microsoft-Teams-Samples\samples\bot-sso-adaptivecard\csharp\BotSsoAdaptivecard.sln]
2025-10-28 22:16:16.935 [info]   Determining projects to restore...
2025-10-28 22:16:16.995 [info] C:\Program Files\dotnet\sdk\10.0.100-rc.2.25502.107\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(32,5): warning NETSDK1138: The target framework 'net6.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\_code\Microsoft-Teams-Samples\samples\bot-sso-adaptivecard\csharp\BotSsoAdaptivecard\BotSsoAdaptivecard.csproj]
2025-10-28 22:16:17.769 [info]   All projects are up-to-date for restore.

Are these samples still maintained? I'm sueprised they still target dotnet6 that has been out of support since almost a year ago https://devblogs.microsoft.com/dotnet/dotnet-6-end-of-support/

Can we expect an update in this repo to use latest versions of dotnet and related dependencies in all samples?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions