如何让Sandcastle与SVN玩得很好?

时间:2021-03-26 16:23:20

I'm trying to add the output of a Sandcastle compilation into source control, but Sandcastle has issues trying to output directly into a subversion-controlled directory structure.

我正在尝试将Sandcastle编译的输出添加到源代码控制中,但Sandcastle试图直接输出到subversion控制的目录结构中。

So, what I was trying to do is output into a non-controlled directory and then robocopy into the svn-controlled structure. I'd prefer to use /MIR to remove any old files, but the problem is that this causes robocopy to wipe out all the svn property stuff.

所以,我试图做的是输出到一个非受控目录,然后robocopy进入svn控制结构。我更喜欢使用/ MIR删除任何旧文件,但问题是这会导致robocopy消除所有svn属性的东西。

So, is there an easy way to use robocopy the way I want, or is there another solution?

那么,有没有一种简单的方法可以按我想要的方式使用robocopy,还是有另一种解决方案?

1 个解决方案

#1


Regarding robocopy I believe you can use the /xd switch to exclude directories, including a directory in your source or destination. For SVN try telling robocopy to exlude .svn folders:

关于robocopy我相信您可以使用/ xd开关来排除目录,包括源或目标中的目录。对于SVN,请尝试告诉robocopy排除.svn文件夹:

robocopy C:\sourcedir\ C:\mydestination /mir /xd .svn

#1


Regarding robocopy I believe you can use the /xd switch to exclude directories, including a directory in your source or destination. For SVN try telling robocopy to exlude .svn folders:

关于robocopy我相信您可以使用/ xd开关来排除目录,包括源或目标中的目录。对于SVN,请尝试告诉robocopy排除.svn文件夹:

robocopy C:\sourcedir\ C:\mydestination /mir /xd .svn