解决 OpenWrap 错误:- 以下命令输入缺少值:Href
我正在尝试建立我自己的 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,其中作者解释(不是很清楚)如何去做它。
因此,我采取了以下方法:
- 按照 http 上的说明进行操作: //www.anthonysteele.co.uk/how-to-package-up-files-with-openwrap 创建本地存储库
- 创建一个站点(IIS7 Web 服务器)并添加一个名为的虚拟目录openwraprepository,将其指向本地存储库文件夹
- 确保目录浏览已打开,并且您可以使用浏览器访问名为 index.wraplist 的文件
- 添加 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:
- Follow the instructions on http://www.anthonysteele.co.uk/how-to-package-up-files-with-openwrap to create a local repository
- Create a site (IIS7 Web Server) and add a virtual directory called openwraprepository, pointing it to the local repository folder
- Ensure that directory browsing is on and that you can get to a file called index.wraplist with a browser
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
openwrap 发布协议适用于 openwrap 2.0,并且是一组模块化功能,您可以将其添加到简单的索引存储库(如该博客中描述的存储库)之上。 (我们需要将这些步骤添加到文档中,我认为这很有用:))
至于添加它,如果您查看 add-remote 上的 get-help 部分,您会发现需要两个输入, -名称和-href。您提供了其中之一,但没有提供另一个。
那应该可以让你做你想做的事。
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.
That should then let you do just what you want.