Sdk: Unable to resolve 'Microsoft.NETCore.App (>= 2.0.0-preview2-25319-02)' for '.NETCoreApp,Version=v2.0'

Created on 5 Jun 2017  路  4Comments  路  Source: dotnet/sdk

Steps to reproduce

Following the dogfooding steps...

  1. Download the Windows SDK.
  2. Unzip the download.
  3. Create a folder for new project. Switch to folder.
  4. Run "dotnet new console".

Expected behavior

Successful restoration.

Actual behavior

Screen capture.
cli-error

Environment data

dotnet --info output:

.NET Command Line Tools (2.0.0-preview2-006127)

Product Information:
Version: 2.0.0-preview2-006127
Commit SHA-1 hash: 946ea7980a

Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Dev\sdk\sdk\2.0.0-preview2-006127\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0-preview2-25319-02
Build : 7983b575ebcbdc3a825eea4b141ff7fb69d25f9d

Most helpful comment

this is a known issue that we are working to fix. This happens because our offline cache is out of sync with the runtime, which means that you need a NuGet.Config with this feed in it to be able to restore: <add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />

All 4 comments

this is a known issue that we are working to fix. This happens because our offline cache is out of sync with the runtime, which means that you need a NuGet.Config with this feed in it to be able to restore: <add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />

@livarcocc : I got a simmilar error, even after adding the correct NuGet.Config reference. What is going wrong?

image

@livarcocc Never mind, I was using the wrong docker image....

Was this page helpful?
0 / 5 - 0 ratings