Last post Sep 21, 2017 02:42 PM by Michael Richter
Sep 08, 2017 09:43 AM|Michael Richter|LINK
after creating a new asp.net core 2.0 application with vs 2017 (version 15.3.3) and trying to publish this application with
"dotnet publish -o dist -r netcoreapp2.0 -c Release"
I get the following error:
"C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.0.0\build\netcoreapp2.0\Microsoft.NETCore.App.targets(19,5): error : Project is targeting runtime 'netcoreapp2.0' but did not resolve any runtime-specific packages for the 'Microsoft.NETCore.App'
package. This runtime may not be supported by .NET Core."
What can I do??
Sep 12, 2017 08:34 AM|AngelinaJolie|LINK
I found an solution for you.
1:Use the .NET Core SDK(! - not runtime!) version 2.0.0:
2:Use the latest NuGet feed (4.3.0):
3:Restore your packages and 'Use packages from NuGet.org':
Sep 21, 2017 02:42 PM|Michael Richter|LINK
The runtime switch doesn't understand the identifier "netcoreapp2.0".
Valid runtime identifiers can be found at