1.0.3 - first-run experience should work even with a 2.0 CLI installed.
See original GitHub issueSteps to reproduce
- Cleared NuGet caches (
dotnet nuget locals all --clear
). - git clone https://github.com/aspnet/DotNetTools.git --branch rel/1.0.1 && cd DotNetTools
- Change global.json to sdk 1.0.3
- dotnet restore
Expected behavior
First-run experience primes nuget cache and restore works.
Actual behavior
First-run fails with
Failed to create prime the NuGet cache. restore failed with: 1
All calls to dotnet restore
fail regardless of DOTNET_SKIP_FIRST_TIME_EXPERIENCE setting
/Users/namc/.dotnet/sdk/1.0.3/NuGet.targets(97,5): error : Failed to retrieve information about ‘Microsoft.NETCore.App’ from remote source ‘/Users/namc/.dotnet/NuGetFallbackFol der’. [/Users/namc/dev/aspnet/DotNetTools/DotNetTools.sln]
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.3)
Product Information:
Version: 1.0.3
Commit SHA-1 hash: 37224c9917
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /Users/namc/.dotnet/sdk/1.0.3
Workaround
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
mkdir -p ~/.dotnet/NuGetFallbackFolder
cc @livarcocc
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Failed to create prime the NuGet cache. new failed with: - ...
I'm seeing this issue, too, on Windows, even with VS closed. The exit code is different on macOS, but after installing 2.0.0 CLI,...
Read more >python - Pipenv unable to install some dependencies (pip ...
I have a project at work I'm converting to pipenv. When I first run pipenv install , it starts fine, but multiple dependencies...
Read more >Arduino CLI And IDE now Released - Teensy Supported! ...
You Open the Boards Manager and Scroll down until you see the Teensy Install and click the Install button. 27535. You then should...
Read more >todod 1.0.3
Todod is a command line based todo list manager. It supports tagging todos and setting due dates. You can filter on certain tags...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug:1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, introduce a simple stability voting system and have a core team...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, restore works fine if I
mkdir -p ~/.dotnet/NuGetFallbackFolder
or edit the global NuGet.config.NuGet cache warm is still broken though. It appears once you install a 2.0.0-* version of CLI, NuGet cache warmup on 1.x CLI breaks.
Repro: Install 2.0.0-preview1 and 1.0.3 CLI. Set global.json to 1.0.3. dotnet new
Result: As above: “
Failed to create prime the NuGet cache.
”This looks like a duplicate of what’s described here: https://github.com/dotnet/cli/issues/6381
I believe this is actually a dup of this one here: https://github.com/dotnet/cli/issues/6550. I will track this issue there, as it has a better explanation of what is going on.