开发者

Proper way to put comments in build events command line?

开发者 https://www.devze.com 2023-02-23 12:24 出处:网络
What\'s the proper way to put comments into the pre/post build event command l开发者_JS百科ine?Use REM: http://www.robvanderwoude.com/comments.php

What's the proper way to put comments into the pre/post build event command l开发者_JS百科ine?


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).

0

精彩评论

暂无评论...
验证码 换一张
取 消