加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-core – 基本bproject create无法创建优质Nuget缓存

发布时间:2020-12-16 03:17:29 所属栏目:asp.Net 来源:网络整理
导读:我想让我的第一个.Net Core解决方案正常工作. 当我尝试在VS 2015中创建项目时,它失败了.所以回归基础. 使用这些指示: MS .Net Core 我这样做了 C:devTestsmkdir hwapp2C:devTestscd hwapp2C:devTestshwapp2dotnet -v newWelcome to .NET Core!------
我想让我的第一个.Net Core解决方案正常工作.

当我尝试在VS 2015中创建项目时,它失败了.所以回归基础.

使用这些指示:
MS .Net Core

我这样做了

C:devTests>mkdir hwapp2
C:devTests>cd hwapp2
C:devTestshwapp2>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:devTestshwapp2.

我在作为管理员的命令提示符中运行它.当我尝试在VS 2015中创建一个项目时也会发生同样的事情.顺便说一下,关闭了防火墙.

环境是

> Windows 10 Pro(Build 14393)
> VS 2015更新3(企业版)
> Dot Net Core Preview 2.0.1(截至2016年9月10日的最新下载)

解决方法

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读