2

Does NAnt or NAntContrib have a way to get the size of a file? I have searched the docs for both, but don't see one.

Or is the best way to either shell out to a command line or write an inline C# script?

See this question for getting the size of a directory

Community
  • 1
  • 1
slolife
  • 19,520
  • 20
  • 78
  • 121

1 Answers1

2

You can use the file::get-length Function.

Rami A.
  • 10,302
  • 4
  • 44
  • 87