.net - How to sign assemblies in MVC web application prior to deployment -


i'm going deploying mvc 4 web application hosting provider via vs web deploy.

i've never signed .net assemblies research seems there 2 ways:

  1. use assemblylinker (al.exe)
  2. use [assembly:assemblykeyfileattribute("keyfile.snk")] or [assembly:assemblykeynameattribute("mycontainer")]

since want avoid rdp'ing host , signing assemblies post deployment. i'll assume should use option 2.

i used vs command prompt generate file: sn.exe -k mydomain.snk

now should add [assembly:assemblykeyfileattribute("mydomain.snk")] assemblyinfo.cs in each project in solution , deploy application?

what default locations check file? i'd avoid adding each project , have 15 copies floating around.

am missing else?

i have in common or shared folder on same level project folders , provide relative path it. default folder project's binaries folder (debug/release) far remember.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -