title: AWS Codebuild: Unknown runtime version named '5.0' of dotnet
body: <p>I have my ASP.net core API targeting <strong>Dot net 5.0</strong>. Is anyone successful in deploying a dotnet 5 application on Amazon Linux platform using CI/CD approach with AWS CodeBuild?</p>
  <p>I tried to use dotnet <code>latest</code> which resolve to version <code>3.1</code>. And, when I use the <code>5.0</code> in <code>buildspec.yml</code>, it errors. As <a href="https://aws.amazon.com/blogs/developer/net-5-on-aws/" rel="nofollow noreferrer">per the blog</a>, it seems to be supported. But not sure how to install using <code>buildspec.yml</code>.</p>
  <pre><code>phases:   
    install:
      runtime-versions:
        dotnet: 5.0
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Mm1A3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mm1A3.png" alt="aws error" /></a></p>