title: Pre-commit hooks in C# with SharpSVN
body: <p>I'm new to SharpSVN (and frankly--pretty new to C# as well). I've been trying get a simple pre-commit hook working which checks for a comment. (i.e. the commit fails in the absence of a comment)  </p>
  
  <p>There are several posts (like <a href="https://stackoverflow.com/questions/2074891">this one</a>) which are related and helpful, but I have a few fundamental questions that are keeping me from getting further:<br></p>
  
  <p>1) How do I get code like the link above running in C#? (i.e. which C# context would I use-- console application? csharp class?)</p>
  
  <p>2) In a Windows Server context, how do I call my compiled C# program?</p>
  
  <p>I've tried <a href="https://stackoverflow.com/questions/5134/best-strategy-to-write-hooks-for-subversion-in-windows">this answer's</a> methodology with no luck.</p>
  
  <p>Thanks in advance.</p>