Base bproject create Failed to create Nuget core cache

I am trying to launch my first .Net Core solution.

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

Using these guidelines: MS.Net Core

I have done it.

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 run this on the command line as an administrator. The same thing happens when I try to create a project in VS 2015. I tried it with Firewall disabled, by the way.

Wednesday

  • Windows 10 Pro (Build 14393)
  • VS 2015 Update 3 (Enterprise)
  • Dot Net Core Preview 2.0.1 (last download since September 10, 2016).
+4
source share
4 answers

.NET Core SDK .

+1

nuget, . .

, nuget .

: nuget locals all -clear

0

.

, :

  • Microsoft.Net Core SDK 2.0 Preview 1
  • Microsoft.Net Core SDK 2.0 Preview 2

" dotnet" .

After starting the "dotnet run" after reinstalling Microsoft.Net Core SDK 2.0 Preview 2 again and the error no longer displayed (what should happen in accordance with this post )

0
source

An issue in GitHub describes a situation where dotnet-core 2.0.0 is installed , but the SDK 1.0.4 is defined in global.json. The following environment variable is a workaround:

DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
0
source

Source: https://habr.com/ru/post/1654267/


All Articles