“在存储库中找不到包”来自 OpenWrap 的错误

发布于 2024-12-03 13:51:19 字数 642 浏览 1 评论 0原文

我下载并安装了 OpenWrap,因为据称这是获取 OpenRasta 二进制文件的最佳方式。但是当我尝试运行 o add-wrap openrasta-full 时,OpenWrap 给了我这个错误:

在存储库中找不到软件包 openrasta-full。

为了覆盖我的基础,我还尝试了 o add-wrap openrasta-devtools,因为这是在 OpenWrap 主页。它只是给了我同样的错误(当然,包名称不同)。

当我从 openwrap.org 安装 OpenWrap (o.exe) 并第一次运行它时,我收到一个控制台窗口,询问我是否要安装,我选择了“安装并添加到路径”选项。它嘎嘎作响了几分钟,下载软件包,但随后控制台窗口关闭,所以我不知道“安装”是否成功完成。现在,当我尝试重新运行下载的文件时,我收到一条错误:“术语‘o’不是可识别的命令或别名。请检查拼写或输入‘get-help’以获取可用命令的列表”。显然它是相同的 EXE 和自我安装,所以我无法重新运行安装,甚至无法判断它是否成功。

如何解决此问题并安装 OpenRasta?

I downloaded and installed OpenWrap, since allegedly it was the best way to get binaries for OpenRasta. But when I try to run o add-wrap openrasta-full, OpenWrap gives me this error:

Package openrasta-full not found in repositories.

Just to cover my bases, I also tried o add-wrap openrasta-devtools, since that's the command that's specifically given as an example on the OpenWrap homepage. It just gave me the same error (with the different package name, of course).

When I installed OpenWrap (o.exe) from openwrap.org, and ran it the first time, I got a console window asking if I wanted to install, and I chose the "install and add to the path" option. It chugged for several minutes, downloading packages, but then the console window closed, so I don't know if the "install" completed successfully. Now when I try to re-run the file I downloaded, I just get an error: "The term 'o' is not a recognized command or alias. Check the spelling or enter 'get-help' to get a list of available commands." So apparently it's the same EXE and self-installs, so I have no way to re-run the install or even tell whether it was successful.

How can I troubleshoot this and get OpenRasta installed?

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

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

发布评论

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

评论(1

仅一夜美梦 2024-12-10 13:51:19

所以 2.1 软件包存在一些问题,现在应该已经全部解决了。

要创建 OpenRasta 站点,您可以:

OpenWrap 1.0

对于 1.0,您需要首先创建一个新项目

c:\src> o init-wrap myProject
c:\src> cd myProject

,然后创建一个新的 asp.net 站点(或控制台应用程序或任何您想要的)。然后您需要将 OpenWrap 连接到您的项目。

c:\src\myProject> o init-wrap -all

最后将 OpenRasta 包添加到您的项目中。

c:\src\myProject> o add-wrap openrasta-full

OpenWrap 2.0

如果您使用 OpenWrap 2.0,那就更容易了。

首先,在您的系统上安装开发工具。

c:\src> o add-wrap openrasta-devtools -system

然后初始化一个新项目

c:\src> o init-wrap myProject
c:\src> cd myProject

并使用创建一个新的 OpenRasta 站点

c:\src\myProject> o new-OpenRastaSite mySolutionName My.Base.Namespace

这将使用默认模板创建 OpenRasta 站点。

随着 OpenWrap 2.0 在模板方面获得更多功能,我可能会隐式创建 openwrap(如果您不在 OpenWrap 项目中,模板将创建一个),并在模板中提供更多选项(例如托管类型)。

So there was some issues with the 2.1 packages that all should have been resolved now.

To create an OpenRasta site you can:

OpenWrap 1.0

With 1.0, you need to first create a new project

c:\src> o init-wrap myProject
c:\src> cd myProject

Then create a new asp.net site (or console app or whatever you want). You then need to hook up OpenWrap to your project.

c:\src\myProject> o init-wrap -all

And finally add the OpenRasta packages to your project.

c:\src\myProject> o add-wrap openrasta-full

OpenWrap 2.0

If you're using OpenWrap 2.0, it's a bit easier.

First, install the devtools on your system.

c:\src> o add-wrap openrasta-devtools -system

Then initialize a new project

c:\src> o init-wrap myProject
c:\src> cd myProject

And create a new OpenRasta site using

c:\src\myProject> o new-OpenRastaSite mySolutionName My.Base.Namespace

This will use the default templates to create an OpenRasta site.

As OpenWrap 2.0 gets more functionality around templating, I'll probably make the openwrap creation implicit (if you're not within an OpenWrap project, the templates will create one) and more options available in the template (hosting type for example).

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