I am pretty new to powershell.
Need help in writing a script to count the total number of lines in a visual studio project provided I ommit (ignore) the commented lines in the code. Eg: <'> single quote as in vb.net. Whichever line is commented i.e begins with <'> single quote I do not need to consider in the lines count of the file.
I've been successful so far in writing the script for counting the number of lines in a project based on the file types(say *.vb etc). like below
(dir -include *.cs,*.xaml -recurse | select-string .).Count
- I now need how can I ignore the line beginning with a single quote while counting?
- Could you suggest something i can include alongwith the above code line??
Any help would be greatly appreciated!
Thanks, Ashish