lunedì 1 luglio 2013

Rebuild Enterprise Library 5.0 (script error)

Windows 7 Professional 64 bit

After I ‘ve downloaded the Microsoft Enteprise Libray 5.0, I wanted to rebuild all assemblies by ..\EntLib50Src\Scripts\BuildLibrary.bat script, but I received following error: “The specified solution configuration Debug|BPC is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform=”Any CPU”) or leave those properties blank to use the default solution configuration."

So, in the 2013 if you want resolve this problem you MUST delete a key registry.

Using regedit.exe navigate to the registry path

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

and select the key Platform. Platform had the value BPC.
Then you delete only the value BPC. After this, the key Platform was still there but empty. Close Regedit, restart your PC and run the BuildLibrary.bat script.