I am working to create chatbot using VS2019 and doing initial set up and followed below steps,
Installed VS Enterprise 2019 16.11.19 which installed sdk of 5.0412.
However followed all steps as it mentioned in many articles can anyone help me where I am wrong
CodePudding user response:
Installed VS Enterprise 2019 16.11.19 which installed sdk of 5.0412.
As the error message suggests, you cannot target .NET 6.0 when you have installed .NET 5.0. Version 5 is older than version 6, and thus a .NET 5 install would be unable to build a .NET 6 project.
Upgrading to Visual Studio 2022 and .NET 6.0 should solve your problem.