title: How should I reference sn.exe in msbuild script?
body: <p>I need to re-sign my assembly after the build has finished (and I've done some other things to it), so I started by adding an <code>&lt;Exec&gt;</code> Task that called <code>C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\sn.exe</code>. This has to work for other developers/environments, so I was hoping I could just copy <code>sn.exe</code> and <code>sn.exe.config</code> from that folder and store it in our code repository so I could always call a common version of it from a known location. </p>
  
  <p><code>sn.exe</code> crashes in isolation outside of the sdk directory, so I'm wondering how I can reference it without knowing what path it will be under. Different people have different environments (x86 vs x64, different install directories, different versions), so I would like to be able to easily reference the latest version of the tool (or perhaps any version). Seems like a simple enough tool, perhaps there is another way to sign an assembly with another tool/command/msbuild task? Any help would be appreciated.</p>