question

deleldridi-3117 avatar image
0 Votes"
deleldridi-3117 asked JeanineZhang-MSFT edited

I cannot execute .NET sdk to launch my application

Hi community;
I need your help, please.

Istarted this exercice with a sandbox "https://docs.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


dotnet-standarddotnet-cli
image.png (65.2 KiB)
image.png (18.1 KiB)
image.png (16.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered deleldridi-3117 edited

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

this app was includ in the sandbox of microsoft not my own. So how can I install the old 3.1 sdk on the sandbox/ microsoft learn environnement?? have you an idea??

0 Votes 0 ·
Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

then just change the project file to net6

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.