Skip to main content

43 posts tagged with "Microsoft 365 Agents SDK"

Microsoft 365 Agents SDK for Building Intelligent Agents

View All Tags

Fixed: "You must install or update .NET to run this application" (Framework 'Microsoft.NETCore.App', version '8.0.0')

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

I created a C# agent project with the Microsoft 365 Agents Toolkit CLI, built it without a single warning, and ran it. It stopped before running a line of my code: You must install or update .NET to run this application. The project targeted .NET 8, my machine had only .NET 10, and .NET 8 was already out of support.

Fixed: "npm warn install-scripts 3 packages had install scripts blocked because they are not covered by allowScripts" (Microsoft 365 Agents Toolkit CLI)

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

I installed the Microsoft 365 Agents Toolkit CLI and npm finished with a warning: three packages had their install scripts blocked. The CLI worked anyway, so the warning looked harmless. It wasn't: one of the blocked scripts belongs to keytar, the library the CLI uses to encrypt the sign-in tokens it saves on your disk.

Fix: ILogger Type Mismatch in AdapterWithErrorHandler CloudAdapter

· 2 min read
Jagdish Kumawat
Founder @ Dewiride

When creating an AdapterWithErrorHandler class that inherits from CloudAdapter, you might encounter this compile error:

Argument 3: cannot convert from 'Microsoft.Extensions.Logging.ILogger<Microsoft.Agents.Hosting.AspNetCore.IAgentHttpAdapter>' to 'Microsoft.Extensions.Logging.ILogger<Microsoft.Agents.Hosting.AspNetCore.CloudAdapter>'

This happens because you're passing ILogger<IAgentHttpAdapter> to the CloudAdapter base constructor, but it expects ILogger<CloudAdapter>.