microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.47k stars 2.44k forks source link

It is compatible with .NET 7? #6551

Closed MrDave1999 closed 1 year ago

MrDave1999 commented 1 year ago

Is there any problem if I use bot framework for a project that targets .NET 7?

InfinytRam commented 1 year ago

Hi @MrDave1999,

I used botframework sdk 4.18.1 in .NET 7 project and it works as expected.

Project file

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net7.0</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.7" />
    <PackageReference Include="Microsoft.Bot.Builder.Dialogs" Version="4.18.1" />
    <PackageReference Include="Microsoft.Bot.Builder.Integration.AspNet.Core" Version="4.18.1" />
  </ItemGroup>

  <ItemGroup>
    <Content Update="appsettings.json">
      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    </Content>
  </ItemGroup>

</Project>

Screenshot 2022-11-14 145138

MrDave1999 commented 1 year ago

@ramfattah Thanks for taking the time to test. I just did a test with a project using adaptive cards and it worked as expected.

InfinytRam commented 1 year ago

@MrDave1999, I created few dotnet bot samples using .NET 7 with minimal APIs here