title: How can I remove tralling backslash from $(ProjectDir)?
body: <p>I have a command line like this in my post-build event:</p>
  
  <pre><code>aspnet_regiis -pef connectionStrings "$(ProjectDir)" -prov "DataProtectionConfigurationProvider"
  </code></pre>
  
  <p>But <code>aspnet_regiis</code> is returning a failure because the tralling <code>\</code> in the directory. Pass full name, path + web.config doesn't work either. </p>
  
  <p>How can I solve this?</p>