解决 OpenWrap 错误:- 以下命令输入缺少值:Href

发布于 2024-12-09 04:11:27 字数 1213 浏览 2 评论 0原文

我正在尝试建立我自己的 http openwrap 存储库。我读过 https://github.com/openrasta/openwrap/wiki/Openwrap -publishing-protocol 但不太了解。然后我发现 http://olsonjeffery .github.com/infrastruct/tooling/.NET/2011/02/01/Deployment-with-OpenWrap.html,其中作者解释(不是很清楚)如何去做它。

因此,我采取了以下方法:

  1. 按照 http 上的说明进行操作: //www.anthonysteele.co.uk/how-to-package-up-files-with-openwrap 创建本地存储库
  2. 创建一个站点(IIS7 Web 服务器)并添加一个名为的虚拟目录openwraprepository,将其指向本地存储库文件夹
  3. 确保目录浏览已打开,并且您可以使用浏览器访问名为 index.wraplist 的文件
  4. 添加 mime -types for .wraplist (application/oebps-package+xml) 和 .wrap (application/vnd.openwrap.package)

现在,从包中我的开发机器我应该可以通过输入 o add-remote http://mysite/openwraprepository

我收到以下错误: 以下命令输入缺少值:Href

I'm trying to set up my own http openwrap repository. I've read https://github.com/openrasta/openwrap/wiki/Openwrap-publishing-protocol but didn't understand much of it. Then I found http://olsonjeffery.github.com/infrastructure/tooling/.NET/2011/02/01/Deployment-with-OpenWrap.html, in which the author explains (not very clearly) how to do it.

So I took the following approach:

  1. Follow the instructions on http://www.anthonysteele.co.uk/how-to-package-up-files-with-openwrap to create a local repository
  2. Create a site (IIS7 Web Server) and add a virtual directory called openwraprepository, pointing it to the local repository folder
  3. Ensure that directory browsing is on and that you can get to a file called index.wraplist with a browser
  4. Add the mime-types for .wraplist (application/oebps-package+xml) and .wrap (application/vnd.openwrap.package)

Now, from the package on my development machine I should be able to specify this as a repository by typing o add-remote http://mysite/openwraprepository.

I get the following error:
Missing values for the following command inputs: Href

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

牵你的手,一向走下去 2024-12-16 04:11:27

openwrap 发布协议适用于 openwrap 2.0,并且是一组模块化功能,您可以将其添加到简单的索引存储库(如该博客中描述的存储库)之上。 (我们需要将这些步骤添加到文档中,我认为这很有用:))

至于添加它,如果您查看 add-remote 上的 get-help 部分,您会发现需要两个输入, -名称和-href。您提供了其中之一,但没有提供另一个。

o add-remote myRemote http://mysite/openwraprepository

那应该可以让你做你想做的事。

the openwrap publishing protocol is for openwrap 2.0, and is a set of modular features you can add on top of a simple indexed repository like the one described in that blog. (We need to add those steps to the documentation, I think that'd be useful :))

As for adding it, if you look at the get-help section on add-remote, you'll see that you need two inputs, -name and -href. You provided one but not the other.

o add-remote myRemote http://mysite/openwraprepository

That should then let you do just what you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文