Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Basic bproject create Failed to create prime the Nuget cache

I am trying to get my first .Net Core solution working.

When I try to create a project in VS 2015, it fails. So back to basics.

Using these directions: MS .Net Core

I did this.

C:\dev\Tests>mkdir hwapp2
C:\dev\Tests>cd hwapp2
C:\dev\Tests\hwapp2>dotnet -v new


Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include commandline arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.
Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 1758 ms
Expanding 100% 6072 ms
Failed to create prime the NuGet cache. restore failed with: 1
Telemetry is: Disabled
Created new C# project in C:\dev\Tests\hwapp2.

I am running this in a Command Prompt as an Admin. Same thing happens when I try to create a project in VS 2015. Did try with Firewall turned off by the way.

Environment is

  • Windows 10 Pro (Build 14393)
  • VS 2015 with Update 3 (Enterprise)
  • Dot Net Core Preview 2.0.1 (latest download as of Sept 10th 2016)
like image 622
Ben Levy Avatar asked Nov 08 '22 09:11

Ben Levy


1 Answers

You should install the latest .NET Core SDK and remove all previously installed versions.

like image 97
torpederos Avatar answered Nov 14 '22 21:11

torpederos