Reputation: 39872
I'm building an ASP.NET Core 2.0 app. My machine is running what I believe is the latest SDK and runtime: 2.0.0-preview2-006497-preview2
$ dotnet --version
2.0.0-preview2-006497
However, when I build and attempt to run a Docker image, I am getting:
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.0.0-preview2-25407-01' was not found.
- Check application dependencies and target a framework version installed at:
/
- Alternatively, install the framework version '2.0.0-preview2-25407-01'.
If I run the base Docker image directly, I discover that it is reporting version 2.0.0
(no preview) as the version:
$ sudo docker run -it microsoft/aspnetcore-build:2.0
root@523a779f7167:/# dotnet --version
2.0.0
I don't get it. 2.0.0 hasn't RTMed, has it? I can't find any information about that anywhere online, but I also can't find Docker base images for preview2.
Upvotes: 3
Views: 1635
Reputation: 100751
.NET Core 2.0.0 SDK and tooling have been released by now. Use the latest Visual Studio 2017 Version (Version 15.3 or higher) and the .NET Core 2.0.0 SDK to get rid of this issue.
Upvotes: 2