下载 CodePlex 项目的最新版本

发布于 2024-12-06 06:25:56 字数 640 浏览 0 评论 0原文

我正在为另一个软件编写更新程序。该更新程序下载/安装该程序扩展的更新(事实上,我的更新程序只是另一个扩展)。

其中一些扩展是 CodePlex 项目。其他的只是在人们的个人网站或他们公司的网站上等等......重点是,没有中央扩展存储库。

我在下载 CodePlex 上托管的更新时遇到问题,因为我似乎无法找到返回/下载最新版本的 URL。例如,在此页面上有一个大的绿色“下载”按钮。我想要的只是,对于任何给定的 CodePlex 项目,我可以点击一个 URL,下载最新版本(就像愚蠢的提示后的“下载”按钮一样)。

我为此创建了一个 CodePlex 功能请求,但它尚未更新,其他也没有更新人们对该网站提出了数百个请求。

总之,我想要这样的东西:

http://coolestProjectEver.codeplex.com/download

此链接将返回/下载该项目的最新版本,没有任何问题/提示。

有什么想法我可以做什么吗?

I'm writing an update program for another piece of software. This update program downloads/installs updates to this program's extensions (my update program is, in fact, just another extension).

Some of these extensions are CodePlex projects. Other's are just on people's personal websites or on their company's website, etc... Point is, there's no central extension repository.

I'm having trouble downloading the updates that are hosted on CodePlex because I cannot seem to just find URL that returns/downloads the latest version. E.g. on this page there is the big, green "Download" button. All I want is, for any given CodePlex project, a URL I can hit that will download the latest version (like that Download button does after the stupid prompt).

I created a CodePlex feature request for this, but it hasn't been updated and neither have the other hundreds of requests people have had for that site.

In summary, I want something like this:

http://coolestProjectEver.codeplex.com/download

This link would return/download the latest version of that project without any questions/prompts.

Any ideas what I can do?

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

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

发布评论

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

评论(2

东走西顾 2024-12-13 06:25:56

可能有帮助的一件事是,有一个指向最新源的永久链接:http://[project].codeplex.com/releases

这也可能有帮助:从源代码读取最新版本< /a>

您可以只读取一个您知道已经存在的包含版本号的文件。 Visual Studio 将其保留在项目或解决方案文件中。

对于 Mercurial 的参考,您只需访问 https://hg.codeplex.com/[project]/raw-file/tip/ 并开始构建所需文件的路径。只是希望它不是一个 .vb 文件,因为这似乎不起作用。

UDPATE:

基于此处找到的评论 http://codeplex.codeplex.com/workitem/25464我能够检索特定文件的最新版本。目标项目中的哪个文件包含版本号,您可以在此处查看。添加一些正则表达式,你应该可以开始了。

格式为:
http://[project].codeplex.com/SourceControl/BrowseLatest#[PathToFile]

One thing that might help is that there is a permanent link to the latest source: http://[project].codeplex.com/releases.

This might also help: Read Latest Version From Source

You could just have that read a file that you know is already there containing the version number. Visual Studio keeps this in the project or solution files.

For your references with Mercurial you can just go to https://hg.codeplex.com/[project]/raw-file/tip/ and start building the path to the file you want. Just hope it isn't a .vb file as that doesn't seem to work.

UDPATE:

Based on the comments found here http://codeplex.codeplex.com/workitem/25464 I was able to retrieve the latest version of a specific file. Which ever file in your target project contains the version number you can see it here. Add in a little regex and you should be good to go.

The format is:
http://[project].codeplex.com/SourceControl/BrowseLatest#[PathToFile]

时光与爱终年不遇 2024-12-13 06:25:56

就像上面讨论的那样,只有 CodePlex 改变它的实现,才很难达到你想要的效果。不要进行黑客攻击,因为他们可能会在另一天升级他们的网站并破坏您的黑客攻击。

考虑将二进制文件托管在单独的站点中(也许在 Google Code 上创建一个备份站点,其中下载页面 (http://code.google.com/p/lextudio/downloads/list) 不会提示。

Like discussed above, only if CodePlex changes its implementation, it will be too hard to achieve what you want. Don't hack, as they may upgrade their site just another day and break your hack.

Consider hosting the binaries in a separate site (maybe create a backup site on Google Code, where the Download page (http://code.google.com/p/lextudio/downloads/list) does not prompt.

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