How to chop command line when using Exec from MsBuild -


in build, want feed list of source files clang-format. i'm doing in msbuild. find list of files in itemgroup can quite large. can format command line this:

$(msbuildthisfiledirectory)clang-format.exe -style=file -output-replacements-xml %(clangfilestoformat.identity) 

however, think i'm exceeding max command line length , command fails. so, i'd call clang-format in batches of x files. don't want call each individual file because it's way slow if that.

how can split itemgroup batches of x items, or otherwise solve this?

thanks


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -