我最近开始使用NuGet来管理外部包。目前,我只需要用于NLog。当我在VS 2012中构建这个项目时,一切都很好。不过,我正在试用TeamCity作为CI服务器(我对CI相当陌生),它给了我以下错误:
[Csc] SomeNamespace\SomeClass.cs(10, 7): error CS0246:
The type or namespace name 'NLog' could not be found
(are you missing a using directive or an assembly reference?)
(在我使用NLog的任何地方都会重复
我正在学习本教程
当我运行此命令时
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
我得到了这个错误
Restoring packages for C:\Users\admin\.templateengine\dotnetcli\v1.0.4\scratch\restore.csproj...
C:\Program Files\dotnet\sdk\1.0.4\NuGet.targets(97,5): error : Failed to retrieve information about
'Microsoft.NE
我刚刚在一台新机器上创建了一个工作区,从TFS获取了我们项目的最新信息,启用了NuGet恢复,并得到了以下输出:
1>------ Rebuild All started: Project: Caching, Configuration: Debug Any CPU ------
1> Restoring NuGet packages...
1> To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Packa