I cannot execute .NET sdk to launch my application

delel dridi 26 Reputation points
2022-06-15T12:00:37.137+00:00

Hi community;
I need your help, please.

Istarted this exercice with a sandbox "https://learn.microsoft.com/fr-fr/learn/modules/control-access-to-azure-storage-with-sas/4-exercise-use-shared-access-signatures".
But I can't launch my application created using the command "dotnet run": I have an error meaning that I don't have a compatible version of SDK installed; although I have everything I need..

In attachment the message of error and the version of SK that I have.

211662-image.png

211648-image.png
211685-image.png

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,367 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,601 Reputation points
    2022-06-15T18:17:24.737+00:00

    the error is pretty clear.

    your app was built with 3.1.401, but only 6.0.300 is installed. install the old 3.1 sdk, or change you program to net 6


  2. Bruce (SqlWork.com) 55,601 Reputation points
    2022-06-15T18:58:27.897+00:00

    then just change the project file to net6

    0 comments No comments