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

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

sitecore - Resolve ISitecoreService using SimpleInjector -