Вопрос

I'm new to the .NET world, and I would like to make my understanding clear.

Is the reason to why SVN hooks are able to read Ruby or Visual Basic scripts and more, because the hooks are compiled under the .NET Framework?

Thank you

Это было полезно?

Решение

According to the Docs, every executable can be used for a hook:

On Unix platforms, this means supplying a script or program (which could be a shell script, a Python program, a compiled C binary, or any number of other things) named exactly like the name of the hook. Of course, the template files are present for more than just informational purposes—the easiest way to install a hook on Unix platforms is to simply copy the appropriate template file to a new file that lacks the .tmpl extension, customize the hook's contents, and ensure that the script is executable. Windows, however, uses file extensions to determine whether or not a program is executable, so you would need to supply a program whose basename is the name of the hook, and whose extension is one of the special extensions recognized by Windows for executable programs, such as .exe or .com for programs, and .bat for batch files.

So the short answers is: No.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top