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 - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -