在构建事件命令行中放置注释的正确方法?

将注释放入 pre/post build 事件命令行的正确方法是什么?

31111 次浏览

Use REM: http://www.robvanderwoude.com/comments.php

An example:

REM signtool sign /a $(TargetPath)
xcopy /Y "$(TargetPath)" "C:\Deploy\$(TargetFileName)"

You can also use double colons ::

:: My comments
xcopy /Y "$(TargetPath)" "C:\Deploy\$(TargetFileName)"

I prefer these to the REM keyword in command line (and bat files).