Skip to content
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.

Unable to resolve 'Microsoft.NETCore.App (>= 1.0.0-rc2-3002376)' for '.NETCoreApp,Version=v1.0' #8

Closed
cowchimp opened this issue Apr 13, 2016 · 4 comments

Comments

@cowchimp
Copy link

Hi.

I'm unable to use this image successfully and I'm not sure if it's just because it's a Work-in-Progress, or if I did something wrong, of if it's an unknown bug.

I get this error message when running dotnet restore on the hello-world project with this docker image (using the one published a few hours ago)
Unable to resolve 'Microsoft.NETCore.App (>= 1.0.0-rc2-3002376)' for '.NETCoreApp,Version=v1.0'

WDYT?

Attaching log

$ docker run -it microsoft/dotnet-preview
root@3e2e4ab17174:/# mkdir hello-world
root@3e2e4ab17174:/# cd hello-world/
root@3e2e4ab17174:/hello-world# dotnet new
Created new C# project in /hello-world.
root@3e2e4ab17174:/hello-world# dotnet restore -v Verbose
trace: Running non-parallel restore.
trace: Reading project file /hello-world/project.json.
log  : Restoring packages for /hello-world/project.json...
trace: Restoring packages for .NETCoreApp,Version=v1.0...
info :   GET https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/index.json
info :   NotFound https://api.nuget.org/v3-flatcontainer/microsoft.netcore.app/index.json 507ms
trace: Resolving conflicts for .NETCoreApp,Version=v1.0...
error: Unable to resolve 'Microsoft.NETCore.App (>= 1.0.0-rc2-3002376)' for '.NETCoreApp,Version=v1.0'.
info : Committing restore...
log  : Writing lock file to disk. Path: /hello-world/project.lock.json
log  : /hello-world/project.json
log  : Restore failed in 1941ms.

Errors in /hello-world/project.json
    Unable to resolve 'Microsoft.NETCore.App (>= 1.0.0-rc2-3002376)' for '.NETCoreApp,Version=v1.0'.

NuGet Config files used:
    /root/.nuget/NuGet/NuGet.Config

Feeds used:
    https://api.nuget.org/v3/index.json
@friism
Copy link

friism commented Apr 13, 2016

I think it's a dupe of this: https://github.com/dotnet/cli/issues/2384

@cowchimp
Copy link
Author

That was it.
Adding this to the /root/.nuget/NuGet/NuGet.Config fixed it.

<add key="dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />

Thank you.

@dush88c
Copy link

dush88c commented Jun 3, 2016

Please follow this link to setup a ASP.Net Core1.0 Application
https://docs.asp.net/en/1.0.0-rc2/getting-started.html

@fletchsod-developer
Copy link

FYI - Broken link on docs.asp.net url address.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants