我是 .NET 世界的新手,我想澄清一下我的理解。
SVN Hook 能够读取 Ruby 或 Visual Basic 脚本等的原因是因为这些 Hook 是在 .NET Framework 下编译的吗?
谢谢
最佳答案
根据Docs ,每个可执行文件都可以用于钩子(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.
所以简短的回答是:不。
关于.net - svn hooks 会因为 .NET 的原因而读取 vbs、ruby 等脚本吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12264980/