I have source code of Entlib 5.0 and I need sign all assemblies using my own key (snk file).
The easiest way would be to open the EnterpriseLibrary.2010 solution file in Visual Studio 2010 and for each project, select Properties->Signing then select Sign the Assembly and finally select your key file.
But I don't want to manually do that then I could write a script to manually edit the project files and insert the following at the end of the current list of PropertyGroups
:
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>keyFile.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
Any helper class in C# or scripting if were better for do it easy and quick way?