gpt4 book ai didi

asp.net-core - 基本bproject创建无法创建Prime Nuget缓存

转载 作者:行者123 更新时间:2023-12-02 03:02:54 26 4
gpt4 key购买 nike

我正在尝试让我的第一个 .Net Core 解决方案正常工作。

当我尝试在 VS 2015 中创建项目时,失败了。那么回到基础知识。

使用这些指示: MS .Net Core

我做到了。

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.

我正在以管理员身份在命令提示符中运行此命令。当我尝试在 VS 2015 中创建项目时,也会发生同样的情况。顺便说一下,我尝试过关闭防火墙。

环境是

  • Windows 10 专业版(内部版本 14393)
  • VS 2015 更新 3(企业版)
  • Dot Net Core Preview 2.0.1(最新下载截至 2016 年 9 月 10 日)

最佳答案

您应该安装最新的 .NET Core SDK 并删除所有以前安装的版本。

关于asp.net-core - 基本bproject创建无法创建Prime Nuget缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39436280/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com