title: Can't execute .net 5 program as Azure WebJob
body: <p>I have a .net 5 command line programm which I try to execute on a schedule as webjob on Azure. I can execute it without issues locally, but when execute on Azure I get:</p>
  <pre><code>[12/14/2020 21:28:03 &gt; 83e1e9: SYS INFO] Status changed to Initializing
  [12/14/2020 21:28:10 &gt; 83e1e9: SYS INFO] Run script 'ApplySupportTool.ServerTasks.exe' with script host - 'WindowsScriptHost'
  [12/14/2020 21:28:11 &gt; 83e1e9: SYS INFO] Status changed to Running
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ] It was not possible to find any compatible framework version
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ] The framework 'Microsoft.NETCore.App', version '5.0.0' was not found.
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ]   - The following frameworks were found:
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ]       2.2.14 at [D:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ]       3.0.3 at [D:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ]       3.1.8 at [D:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ] 
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ] You can resolve the problem by installing the specified framework and/or SDK.
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ] 
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ] The specified framework can be found at:
  [12/14/2020 21:28:11 &gt; 83e1e9: ERR ]   - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&amp;framework_version=5.0.0&amp;arch=x64&amp;rid=win10-x64
  [12/14/2020 21:28:11 &gt; 83e1e9: SYS INFO] Status changed to Failed
  [12/14/2020 21:28:11 &gt; 83e1e9: SYS ERR ] Job failed due to exit code -2147450730
  </code></pre>
  <p>But from what I read here: <a href="https://azure.github.io/AppService/2020/11/10/Dot-Net-5-on-App-Service.html" rel="nofollow noreferrer">https://azure.github.io/AppService/2020/11/10/Dot-Net-5-on-App-Service.html</a> .net 5 is already available through all regions. Also, my .net 5 asp.net core web api project works without issues on the same app service.
  I also tried to install it explicitly via the ASP.NET Core 5.0 (x86) Runtime, but with no different result.
  I know that I can publish it as self contained. Given the size increase I would prefer to use the installed version though.</p>