I run the following command as a pre-Build event in Visual Studio 2005 and it works fine:
我在Visual Studio 2005中运行以下命令作为预构建事件,它工作正常:
SubWCRev.exe "C:\work\subversion\aviOffline .Net\trunk"
"c:\test.tmpl"
"c:\testout.txt"C:\work\subversion\aviOffline .Net\trunk"
So I change the command to use the in-built Visual Studio macros for better maintainability but it fails. It appears to fail on the $(SolutionDir) macro because it appends a trailing backslash and SubWCRev.exe seems to not like the trailing backslash?
因此,我更改命令以使用内置的Visual Studio宏以获得更好的可维护性,但它失败了。它似乎在$(SolutionDir)宏上失败,因为它附加一个尾部反斜杠,而SubWCRev.exe似乎不喜欢尾部反斜杠?
"SubWCRev.exe" "$(SolutionDir)" "c:\test.tmpl" "c:\testout.txt"
Is there a dos command or another way that removes the trailing backslash?
是否有dos命令或其他方法来删除尾部反斜杠?
Thanks
1 个解决方案
#1
I would try putting a trailing dot:
我会尝试放一个尾随点:
"$(SolutionDir)."
#1
I would try putting a trailing dot:
我会尝试放一个尾随点:
"$(SolutionDir)."