pjgpetecodes / dotnet7pi

Install .NET 7 on a Raspberry Pi with a single line.
MIT License
15 stars 2 forks source link

When trying to run a compiled dotnet7 app, the app doesn’t find the installed framework. #5

Open angelivan-spartan opened 1 year ago

angelivan-spartan commented 1 year ago

Apps look in the environment variable $DOTNET_ROOT for an available framework. Just add “export DOTNET_ROOT=/opt/dotnet” to your script. Source: (Bottom of the page) https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual

Excellent work by the way.

Cheers. Angel

cruce commented 1 year ago

Thanks. That fixed my problem.