1
HI,SVN后提交作品只能手动
我已经创建了一个所谓的后commit.bat批处理文件,并把它放在/ hooks目录下。
文件的内容是:
TestCS.exe
的exe文件的内容是:
static void Main(string[] args)
{
try
{
// create a writer and open the file
TextWriter tw = new StreamWriter("date.txt");
// write a line of text to the file
tw.WriteLine(DateTime.Now);
// close the stream
tw.Close();
}
catch { }
}
当我上commit.bat后双击,它创建的日期。 txt文件。
当我在SVN提交,这需要时间,并最终使我有以下消息: alt text http://img688.imageshack.us/img688/3894/exception.jpg
可以采取什么问题吗?
谢谢!
我试过using语句,仍然是一样的。甚至删除了字符串args []。还是一样。 – Oded 2010-02-01 08:09:01
我想通了。 当运行testCS.exe时,它显然在/ SVNServer/bin中查找文件,而不是在钩子文件夹中。在bin文件夹中,我有一个带有IndexOutOfRangeException的testCS.exe文件。 谢谢。 – Oded 2010-02-01 08:29:57
我几乎提到“你确定你在运行你认为你正在运行的二进制文件”,但最终没有打扰。哎呀。 – 2010-02-01 09:36:47