- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们使用 Cakebuild.net 提供的标准 build.ps1 PowerShell 脚本
它在 CI 和开发人员机器上都表现出色,但对于我们的一位开发人员来说,我们在启动 build.ps1 时遇到以下错误
Unable to find package 'Cake'
然后退出,检查tools文件夹没有安装Cake。
最佳答案
您收到的错误是因为 NuGet 控制台无法在计算机上配置的源中找到 Cake 包。
您可以通过更改 build.ps 中的以下行来测试该理论。
$NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$TOOLS_DIR`""
至
$NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$TOOLS_DIR`" -Source `"https://www.nuget.org/api/v2`""
如果这有效,您同事的机器可能缺少或禁用了标准 nuget.org feed。
您可以像这样使用 NuGet 控制台列出已配置的源(如果您的路径中没有 nuget 控制台,则应在存储库工具文件夹中使用它)
nuget sources list
然后它应该列出 nuget.org 的 v2 和/或 v3 feed,并且它们后面应该有文本 [Enabled]
,如下所示
Registered Sources:
1. https://www.nuget.org/api/v2/ [Enabled]
https://www.nuget.org/api/v2/
2. https://api.nuget.org/v3/index.json [Enabled]
https://api.nuget.org/v3/index.json
如果它们已列出但已禁用,您可以通过键入来启用它们
nuget source enable -Name https://www.nuget.org/api/v2/
或者
nuget source enable -Name https://api.nuget.org/v3/index.json
根据您注册和禁用的提要,如果源丢失,您可以通过键入添加它们
nuget sources add -Name https://www.nuget.org/api/v2/ -Source https://www.nuget.org/api/v2/
设置存储在 %AppData%\NuGet\NuGet.config
中,因此您可以手动编辑该文件,为确保团队中的每个人都使用相同的源,您可以添加 NuGet.config
到存储库的根目录,因为 nuget 尝试在路径中查找配置,然后返回到应用程序数据。
关于c# - Cake build.ps1安装Cake失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38792473/
如果我有一个包含许多相互依赖的项目的大型代码库,例如,projects/A、projects/B 和 projects/C ,其中 A 需要 B,B 需要 C,每个项目都有一个Cake 构建脚本,例如
我是 cake php 的新手。我有两张 table ce_landing ce_stat 结构是 ce_stat id keyword click 1 keyw
我想知道在 Scala 中为 DI 使用函数和 Cake 模式之间的区别。我想出了以下理解,我想知道这种理解是否正确。 让我们想象一个依赖图。 1)如果我们使用函数作为构建 block ,那么图由作为
我第一次尝试在 Ubuntu 12.04 上运行 givenwhenthen Node 模块,我已经按照他们网站上“Running Stories”标题下列出的设置说明进行操作 here. 我已经在
我在这里阅读了指南:http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html其中描述了 Cake 2.0 版的更改,但没有明
如何使用cake php让cake php查找查询结果数组key改为id值? $videos = $this->Video->find('all'); print_r($videos); 数组将是 A
也许是转储问题。 Cake指出它是一个可以用 C# 编写的构建自动化系统。我实际上正在玩弄一下,现在想知道是否可以在 build.cake 中调用 .Net 方法。当时我有以下 build.cake:
有人可以解释一下 CakePHP layout.ctp 文件中使用的这两行吗?似乎这两行都用于添加 css。那有什么区别呢?它们是如何工作的。 $this->Html->css('cake.gene
我必须在 .travis.yml 中添加什么内容才能运行 cake.build 并编译 .net core 项目? 最佳答案 首先添加build.sh到你的github存储库,然后赋予它执行权限,在
我遇到了这些重复的错误,无法解决。 PHP Fatal error: [CakeException] Unknown status code #0 /home/gourmet/public_html
我在 Cake 上遇到了一个奇怪的问题。我住在德国。当我添加帖子时,“已创建”数据库字段中的时间是 6 小时前。例如。下午 6 点创建的帖子在数据库中显示为上午 12 点创建。我使用托管服务器,并联系
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, over
我正在使用 Wamp 服务器,我正在尝试安装 CakePHP 2.0.0,但遇到了问题。 我将 CakePHP 2.0.0 文件放在我的 wamp 服务器文件夹“www”和“cake”文件夹中。 当我
如何让Cake php默认分页获取第一页和最后一页分页链接 Paginator->counter(array( 'format' => __('Page %page% of
我有一个名为“table”的表,它存储数据库中其他表的详细信息。我现在正在创建一个功能,以便每当表名插入到该表中时,都会创建相同的表。例如,如果我插入一个名为“wf_128fe”的表,则会使用一些动态
我在 cake php 2.1 中有以下代码。我尝试获取唯一字符串消息的列表,删除所有重复项。 $this->loadModel('ErrorMessage'); $this->ErrorMessag
我正在创建一个动态数组并将其保存到表中,这是我的保存模型 型号:我有类别,类别有很多产品,然后产品有很多子产品,子产品可能有很多选项 这是我创建动态复选框的查看代码
我是 cakephp 的新手,我正在尝试使用删除查询,但运行以下代码时没有行受到影响,也没有显示错误: $db=ConnectionManager::getDataSource('default');
我在 cake php 1.3 中编写了这个连接查询。 $supportbooks=$this->Supportbook->find('all',array('joins'=>array(
我正在用 php 编写代码,基本上将数据从 mySQL 数据库“映射”到另一个数据库。我使用的代码如下: $results = $this->query("select PT_FS_DATA_ID f
我是一名优秀的程序员,十分优秀!