Configuration tool and Silverlight

Topics: Silverlight Integration Pack, Validation Application Block
Jul 26, 2011 at 9:27 PM

How do I use the Configuration tool with Silverlight? I have tried EntlibConfig.exe and EntlibConfig.NET4.exe and tried to add a Silverlight assembly type for validation with no luck.

Jul 27, 2011 at 4:25 AM


I had the EnterpriseLibrary.Config extension,, installed which gave me an option for "Edit Silverlight configuration file". I wanted to be able to do the same thing from the command line of where Entlib is installed. I only saw a desktop.profile and was baffled at how the extension was running the config in Silverlight mode. Eventually I found where the extension was installed, %localappdata%\Microsoft\VisualStudio\10.0\Extensions\Microsoft\EnterpriseLibrary.Config\5.0.505.0, and saw a silverlight.profile file. Looking at the source for the config tool, I figured out the parameter I needed to pass after copying silverlight.profile to my Entlib installed location. The command is below: 

"c:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin\EntLibConfig.NET4.exe" -profile:silverlight.profile


Now the config tool runs in Silverlight mode.