I have a GlobalAssemblyInfo.cs file at the root of my solution, and I have something like the following entry to include a strong name for my output assemblies.
#pragma warning disable 1699 [assembly : AssemblyKeyFile("..\\keyfile.snk")] #pragma warning restore 1699
This approach has two drawbacks. First, AssemblyKeyFileAttribute is deprecated, so to avoid compilation warnings, I need the pragma lines you see above. Secondly, I need to either keep all my projects at the same depth relative to the root in order to use the relative path, or use the absolute path that dictates the scan location on the computers of other users (and on the continuous integration servers / build agents).
Does anyone have a better solution besides this, except that each project sets a strong naming convention in the project file?
David m
source share