作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试让我的第一个 .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 中创建项目时,也会发生同样的情况。顺便说一下,我尝试过关闭防火墙。
环境是
最佳答案
您应该安装最新的 .NET Core SDK 并删除所有以前安装的版本。
关于asp.net-core - 基本bproject创建无法创建Prime Nuget缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39436280/
我是一名优秀的程序员,十分优秀!