title: The specified framework 'Microsoft.AspNetCore.App', version '2.2.5' was not found
body: <p>After upgrading targetFramework for my web app from <code>netcoreapp2.1</code> to <code>netcoreapp2.2</code> my web app works great on local machine but when published to Azure WebApp environment fails to start with the following error:</p>
  
  <pre><code>HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure
  Common causes of this issue:
  The application process failed to start
  The application process started but then stopped
  The application process started but failed to listen on the configured port
  Troubleshooting steps:
  Check the system event log for error messages
  Enable logging the application process' stdout messages
  Attach a debugger to the application process and inspect
  For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681
  </code></pre>
  
  <p>And if I go to Azure console and try to run the app manually with <code>dotnet xxx.dll</code> I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/xGjXZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xGjXZ.png" alt="enter image description here"></a></p>
  
  <p>My reference to <code>Microsoft.AspNetCore.App</code> is added without the version as recommended by the warning:</p>
  
  <pre><code>    &lt;PackageReference Include="Microsoft.AspNetCore.App" /&gt;
  </code></pre>
  
  <p>I've found the similar issue here for previous version update but with no help to me:
  <a href="https://github.com/aspnet/AspNetCore.Docs/issues/8794" rel="nofollow noreferrer">https://github.com/aspnet/AspNetCore.Docs/issues/8794</a></p>
  
  <p>How can I troubleshoot this issue?</p>