Forum Discussion

gracechen's avatar
gracechen
Copper Contributor
Jan 03, 2021

[Sandbox] It was not possible to find any compatible framework version

Got the sample code from github according to the instructions from Microsoft learning path. Edited the code necessary but could not run. The github location is https://github.com/MicrosoftDocs/mslearn-expose-hybrid-services-with-azure-relay. Herewith the error message:
____________________________________________________________________________________________________________________________
dotnet bin/Debug/netcoreapp2.2/listener.dll
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.2.0' was not found.
- The following frameworks were found:
3.1.9 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.2.0&arch=x64&rid=cbld.10-x64


This issue occurred in several learning contents which stop me from continuing my study.

Kindly assist.

Thank you.

6 Replies

  • julfa1710's avatar
    julfa1710
    Copper Contributor

    gracechen 

    I have the same issue and can not accomplish some of my learn sandbox tests because of that.

     

    The tip from @george1251 couldn't help this issue.

     

  • George1251's avatar
    George1251
    Copper Contributor

    gracechen the following work around worked in my case.

     

    Locate the .csproj file (might be more than one, in which case do the same to each)

    Locate the following line

    <TargetFramework>netcoreapp2.2</TargetFramework>

    Change it to 

    <TargetFramework>netcoreapp3.1</TargetFramework>

    Save, Close and Try again

     

    Hope this helps

    • Dmitry_Tukeev's avatar
      Dmitry_Tukeev
      Copper Contributor
      Thanks!
      It works!
      https://docs.microsoft.com/en-us/learn/modules/app-service-scale-up-scale-out/3-exercise-scale-a-web-app-manually
    • Steve_Bates_930's avatar
      Steve_Bates_930
      Copper Contributor

      THis worked for me. I edtied the .csproj file during the exercise

      https://docs.microsoft.com/en-gb/learn/modules/monitor-diagnose-and-troubleshoot-azure-storage/4-exercise-storage-metrics

       

      and it ran.

       

      MAny thanks

  • George1251's avatar
    George1251
    Copper Contributor

    I'm experiencing the same issue.  Watching for some assistance.  

Resources