简体   繁体   English

下载CodePlex项目的最新版本

[英]Download Latest Version of a CodePlex Project

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. 其中一些扩展是CodePlex项目。 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. 我在下载CodePlex上托管的更新时遇到问题,因为我似乎无法找到返回/下载最新版本的URL。 Eg 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). 对于任何给定的CodePlex项目,我想要的是一个我可以点击的URL,它将下载最新版本(就像愚蠢的提示之后的下载按钮一样)。

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. 我为此创建了一个CodePlex功能请求 ,但它尚未更新,也没有人们为该网站提出的其他数百个请求。

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? 任何想法我能做什么?

One thing that might help is that there is a permanent link to the latest source: http://[project].codeplex.com/releases . 可能有帮助的一点是,有一个与最新来源的永久链接: 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. Visual Studio将其保留在项目或解决方案文件中。

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. 对于Mercurial的引用,您可以访问https://hg.codeplex.com/[project]/raw-file/tip/并开始构建所需文件的路径。 Just hope it isn't a .vb file as that doesn't seem to work. 只是希望它不是一个.vb文件,因为它似乎不起作用。

UDPATE: 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. 基于此处的评论http://codeplex.codeplex.com/workitem/25464我能够检索特定文件的最新版本。 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] 格式为: http://[project].codeplex.com/SourceControl/BrowseLatest#[PathToFile]

Like discussed above, only if CodePlex changes its implementation, it will be too hard to achieve what you want. 如上所述,只有CodePlex改变其实现,才能实现您想要的目标。 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. 考虑在单独的站点中托管二进制文件(可能在Google Code上创建一个备份站点,其中下载页面(http://code.google.com/p/lextudio/downloads/list)不会提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM