Ich benutze Visual Studio Mac für eine kurze Zeit und habe es gerade auf die veröffentlichte Version aktualisiert. Ich habe auch .NET Core 2.0 Preview: 1. Von einem Shell-Prompt heruntergeladen und installiert habe ich ein neues Web-API-Projekt erzeugen:Visual Studio Mac inkompatibel mit dotnet core 2
dotnet2 davec$ dotnet --version
2.0.0-preview1-005977
dotnet2 davec$ dotnet new webapi
The template "ASP.NET Core Web API" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/template-3pn for details.
Processing post-creation actions...
Running 'dotnet restore' on dotnet2/dotnet2.csproj...
Restore succeeded.
ich bauen kann und das Projekt von dem Shell ausgeführt. Aber wenn ich es in Visual Studio für Mac öffnen, die IDE versucht und nicht wiederherzustellen:
Errors in dotnet2/dotnet2.csproj
Unable to resolve 'Microsoft.NETCore.App (>= 2.0.0)' for '.NETCoreApp,Version=v2.0'.
Unable to resolve 'Microsoft.NETCore.App (>= 2.0.0)' for '.NETCoreApp,Version=v2.0 (win)'.
Unable to resolve 'Microsoft.NETCore.App (>= 2.0.0)' for '.NETCoreApp,Version=v2.0 (win-x64)'.
Unable to resolve 'Microsoft.NETCore.App (>= 2.0.0)' for '.NETCoreApp,Version=v2.0 (win-x86)'.
NuGet Config files used:
~/.config/NuGet/NuGet.Config
Feeds used:
https://api.nuget.org/v3/index.json
Restore failed for 'Microsoft.NETCore.App (>= 2.0.0)'.
Restore failed.
https://gist.github.com/mrward/70b8132003ef77d893111ecbea3e2225#net-core-app-20-project – jmoerdyk
Dank der 'RuntimeFrameworkVersion' gelöst das Problem für mich. –