-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI does not use feeds named 'dotnet-core'. #8128
Comments
The latest version of Microsoft.NETCore.App on Myget as of now is 2.0.0-preview1-002013-00. Just tested with a new console app and it restores correctly. Could you try with that version in your .csproj? |
Thanks, @techyian. I tried that last night as well and it didn't work. It appears that the CLI is ignoring feeds with the name
This seems to be the actual bug. I'll re-title this. |
This issue was moved to NuGet/Home#5044 |
See comment below. The repro is the same but now I understand better the cause.
This might be related to #8127, but looked sufficiently different I thought I'd open another issue. For example, mine does not fail in the initial restore.
Steps to reproduce
dotnet new console
add RuntimeFrameworkVersion to project:
dotnet restore
Expected behavior
restore succeeds
Actual behavior
Restoring packages for C:\source\t\t.csproj...
C:\dotnets\2.0.0-preview1-005797\sdk\2.0.0-preview1-005797\NuGet.targets(97,5): error : Unable to resolve 'Microsoft.NETCore.App (>= 2.0.0-preview1-002011-00)' for '.NETCoreApp,Version=v2.0'. [C:\source\t\t.csproj]
Generating MSBuild file C:\source\t\obj\t.csproj.nuget.g.props.
Generating MSBuild file C:\source\t\obj\t.csproj.nuget.g.targets.
Writing lock file to disk. Path: C:\source\t\obj\project.assets.json
Restore failed in 88.17 ms for C:\source\t\t.csproj.
Errors in C:\source\t\t.csproj
Unable to resolve 'Microsoft.NETCore.App (>= 2.0.0-preview1-002011-00)' for '.NETCoreApp,Version=v2.0'.
NuGet Config files used:
C:\source\t\NuGet.Config
C:\Users\billw\AppData\Roaming\NuGet\NuGet.Config
C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config
Feeds used:
https://api.nuget.org/v3/index.json
https://www.myget.org/F/aspnetrelease/api/v3/index.json
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
Environment data
dotnet --info
output:.NET Command Line Tools (2.0.0-preview1-005797)
Product Information:
Version: 2.0.0-preview1-005797
Commit SHA-1 hash: 645bb43
Runtime Environment:
OS Name: Windows
OS Version: 10.0.14393
OS Platform: Windows
RID: win10-x64
Base Path: C:\dotnets\2.0.0-preview1-005797\sdk\2.0.0-preview1-005797\
Microsoft .NET Core Shared Framework Host
Version : 2.0.0-preview1-001978-00
Build : d197c00dc0f5ca41ac61b6321ebb37d39b63cf80
The text was updated successfully, but these errors were encountered: