Jan 03 2021 01:43 AM
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=x6...
This issue occurred in several learning contents which stop me from continuing my study.
Kindly assist.
Thank you.
Jan 03 2021 02:37 AM
Jan 05 2021 09:26 AM
I'm experiencing the same issue. Watching for some assistance.
Jan 05 2021 09:35 AM
@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
Jan 21 2021 02:45 AM
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.
Jan 22 2021 02:55 AM
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-exe...
and it ran.
MAny thanks