A control uses unity 2.0 to resolve a dependency to a LocalizationService.
In the Visual Studio 2010 designer, we get the exception:
InvalidOperationException was thrown on "DataGridView". Resolution of the dependency failded, type = ...
... The current type, ...ILocalizationService, is an interface and cannot be constructed.
Is there a way to avoid these exceptions in the designer of Visual Studio? Could we put conditional code to display or do something at design time and only resolve the dependency at run time?