Possible Duplicate:
How do I specify the exit code of a console application in .net?
I need to have a console app that returns a value to the caller (I will call it by a PowerShell script).
How can I change the entry-point to the console app? (And would this be enough to be able to consume return values from the console app?)