Strong-naming Enterprise Library 3.0

Topics: Building and extending application blocks, Enterprise Library Core
Apr 7, 2007 at 7:43 PM
Is anyone able to strong name EL 3.0? I am having a horrific time.
1. I have Visual Studio 2005 Professional, I have Guidance Automation Extensions February CTP installed.
2. I open up the EnterpriseLibrary.NUnit.sln solution.
3. I choose Tools > Guidance Package Manager
4. I click "Enable / Disable Guidance Packages"
5. I select the "Strong Naming Guidance Package", and close all of the dialogs
6. I right-click on the solution root, and choose "Strong-name all projects in this solution or solution folder".
7. I provide the .snk file and select the "Update InternalsVisibleTo".
8. And click OK
9. I right-click on the solution root and select Build

At this point I get hundreds of errors about it cannot find assemblies, well that is because none of the assemblies built, so the ones that reference it cannot build either. Am I missing something? How come the solution does not build if you strong name the assemblies?
Apr 7, 2007 at 9:32 PM
I am posting a reply to myself, I figured it out, hopefully this helps other people. There is apparently an issue with the Strong Naming Guidance Package, when it updates the InternalVisibleTo attribute, the public key is all uppercase, but the real public key is not, therefore it does not match and the compiler says the public key is invalid.
For example, the Strong Naming Guidance Package inserted the following public key into all of my InternalVisibleTo:
PublicKey=00240000048000009400000006020000002400005253413100040000010001008554F3870351B48D978A06D4A2634DA55C3FD3B474BCD83644F12C309521557964A7CE0501D5D22340DEA476DCBDBE8A175402502E795CF63FAA67309C2465A40D669C90B021BE726F9651649398A2CE3B4F0705311DB7BCF22FFD2E790A93ADE5A7750A5545ACD11B4B7AFA809BF08CE04B7935083A0EA805A23A86B6

but the actual public key was:
PublicKey=00240000048000009400000006020000002400005253413100040000010001008554f3870351b48d978a06d4a2634da55c3fd3b474bcd83644f12c309521557964a7ce0501d5d22340dea476dcbdbe8a175402502e795cf63faa67309c2465a40d669c902b3541b021be726f9651649398a2ce3b4f0705311db7bcf22ffd2e790a93ade5a7750a5545acd11b4b7afa809bf08ce04b7935083a0ea805a23a86b6