title: How to register a DLL with RegAsm in Build EventS VS2013
body: <p>In every compile, output dll is changed in my program and after every compile, I must register dll again. I can register it via <strong>Visual Studio Command Prompt</strong> as <strong>regasm</strong> mydll.dll. But I dont want to do it everytime and I want it as automatically. After some research, I have detected that it is possible with Visual Studio from <strong>Build Events</strong> (project>properties). But I have never used Build Events before and I really cannot understand how it will be. Should I write my dll path to <strong>pre-build event command line</strong> ? </p>
  
  <p>My dll location : <em>C:\Program Files (x86)\Onur\Client\Bin\client.dll</em></p>
  
  <p>My regasm location : <em>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe</em></p>
  
  <p>What should I write to pre-build and post-build commands in Build Events section ?</p>
  
  <p>I tried them but even not compiled within it.
  <a href="https://stackoverflow.com/questions/371302/vs-post-build-event">VS Post Build Event</a></p>