I have a ccnet.config section which I had implemented for a demo purpose. So I have a simple validation check which is done before my build is being triggered. So if the validation passes then my build starts of successfully.So validation check is to count the number of '#defines' present in a single .c file which is a.c
for example. I had achieved this using VB scripts(.vbs) which is called with the help of .bat files.
So my doubt is
- If it is correct to call my .bat file in the ccnet.config file in the prebuild section.
- If I am able to get the return value, ie. the number of #defines in a .c file into a variable in my .bat file, how should I proceed with comparing or validating this return value against a fixed known value?
I hope I am able to convey my doubts clearly. Please get back to me if you need any more clarification.