title: "It was not possible to find any compatible framework version" with ASP.NET Core 2.1 in Docker
body: <p>I'm trying to update an ASP.NET Core 2.0 application that runs in Docker to .NET Core 2.1 RC1.</p>
  
  <p>Here's my simplified <code>.csproj</code> file:</p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk.Web"&gt;
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp2.1&lt;/TargetFramework&gt;
      &lt;Version&gt;$(Version)&lt;/Version&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.All" Version="2.1.0-rc1-final" /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.1.0-preview1-final" /&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>And here's the <code>Dockerfile</code>:</p>
  
  <pre><code>FROM microsoft/dotnet:2.1-sdk-alpine AS builder
  WORKDIR /
  COPY . .
  RUN dotnet restore My.Project/My.Project.csproj
  RUN dotnet publish My.Project/My.Project.csproj -o /dockerout/ -c Release
  
  FROM microsoft/dotnet:2.1-aspnetcore-runtime-alpine
  WORKDIR /app
  EXPOSE 80 5000
  
  COPY --from=builder /dockerout .
  
  ENTRYPOINT ["dotnet", "My.Project.dll"]
  </code></pre>
  
  <p>I can build the image in Docker but running it fails with</p>
  
  <blockquote>
    <p>It was not possible to find any compatible framework version The specified framework 'Microsoft.AspNetCore.All', version '2.1.0-rc1-final' was not found.</p>
    
    <ul>
    <li>Check application dependencies and target a framework version installed at:
      /usr/share/dotnet/</li>
    <li>Installing .NET Core prerequisites might help resolve this problem:
      <a href="http://go.microsoft.com/fwlink/?LinkID=798306&amp;clcid=0x409" rel="noreferrer">http://go.microsoft.com/fwlink/?LinkID=798306&amp;clcid=0x409</a></li>
    <li>The .NET Core framework and SDK can be installed from:
      <a href="https://aka.ms/dotnet-download" rel="noreferrer">https://aka.ms/dotnet-download</a></li>
    </ul>
  </blockquote>
  
  <p>Is there something I'm missing? Or should I just wait for the final release of Core 2.1?</p>